failed with this message: The request was aborted: Could not create SSL/TLS secure channel. SOAP API

Neha4cools
Member Posts: 3
I am getting below error and i am not expert in SOAP API integration.

Below code was working fine but suddenly i have start getting the above error, to solve this issue i have used the below code also
ServicePointManager.SecurityProtocol := SecurityProtocolType.Tls12; but no luck.

i am getting error on the this line of code

Below code was working fine but suddenly i have start getting the above error, to solve this issue i have used the below code also
ServicePointManager.SecurityProtocol := SecurityProtocolType.Tls12; but no luck.

i am getting error on the this line of code
Str := lgResponse.GetResponseStream();On the endpoint 1.2 is enabled i don't know what to do now, Any help is highly appreciated
0
Answers
-
in the streamwriter try different UTF8, UTF16 or UTF32. See what works.United Kingdom0
-
If this was working before, better check possible security protocol changes in the web service deployment, the supported TLS versions for instance.
And I usually avoid .NET Assemblies inside of CAL or AL, terrible environments for .NET related trouble shooting and debugging. I go for PowerShell with native .NET support these days and hook it up with whatever the third party might have to offer and I never look back when it comes to this kind of integration work.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions