C#C
C#3y ago
YShakhshir

❔ Could not create SSL/TLS secure channel ( Please Help Me, I am stuck!)

Hello my friends,
Can you please help me getting this issue resolved.

I am working on a WebForms project and I am trying to call a certain API "https://******/api/v1".
When running the application using IIS Express, I am getting the following exception "The request was aborted: Could not create SSL/TLS secure channel.". Even though I changed the properties of the project to be "SSL Enabled" but still didn't work!.
The weird thing is that I have created a new solution and created a dummy webForms project inside it that also calls the same API , and configured it to be "SSL Enabled", it called the API successfully without getting the previously mentioned exception.
Can you please advise regarding this. I believe it is something related to Security Certificates, but unfortunately, I am not an expert with these stuff.

Edit: The project called WebForms worked, but the project called "UsersService" didn't work.
I need to get the UsersService being able to call the API successfully like the "WebFroms" project.

Thank you.
Doesnt_work_with_https.PNG
Works_with_https.PNG
Was this page helpful?
❔ Could not create SSL/TLS secure channel ( Please Help Me, I am stuck!) - C#