Question

The request was aborted: Could not create SSL/TLS secure channel

Hi community,

 

I'm facing an error The request was aborted: Could not create SSL/TLS secure channel while sending a request through Creatio (7.10 Version) to the third-party system.

 

The same code is perfectly working with Postman and Visual studio.

 

Please see the below image where I'm using RestClient class to perform the request sending part.

 

 

I've searched on the internet and tried using ServicePointManager class but then started getting this error System.NullReferenceException: Object reference not set to an instance of an object.

 

Please help me! This is very urgent for my client.

 

Many Thanks!

 

 

Like 0

Like

3 comments

Hi Sarthak,

 

ServicePointManager should resolve this error "The request was aborted: Could not create TLS/SSL secure channel ", but I see your Creatio version is old it may not have System.Net.ServicePoint.dll file which may be the reason for System.NullReferenceException.

 

Try downloading System.Net.ServicePoint.dll from here https://atlas.ion.uwplatt.edu/bitbucket/projects/SB/repos/buildscripts/browse/DotnetCore/shared/Microsoft.NETCore.App/2.0.9/System.Net.ServicePoint.dll?at=feature/db-73  and use it. 

 

Regards 

Akshit.

Hi Akshit,

 

Thanks for your help!

 

You made my day ;).

Hello Sarthak,

 

Hope you're doing well.

 

Akshit, thank you for your help and cooperation. We confirm that the way proposed in the comment above can help to resolve the issue. Also, the next article can be helpful for resolving your business task:

https://stackoverflow.com/questions/2859790/the-request-was-aborted-cou…

 

Best regards,

 

Roman

Show all comments