Azure App Configuration: The request was aborted: Could not create SSL/TLS secure channel.

Amy Marty 106 Reputation points
2021-03-05T18:51:56.79+00:00

I am attempting to move the configuration for our web form reporting software to use Azure App Configuration. It works while on my local machine, but when I publish to our test environment, it returns a RequestFailedException: The request was aborted: Could not create SSL/TLS secure channel. I've upgrade all packages, and moved the solution to .NET 4.8. The problem occurs when attempting to navigate to the site, when the configBuilder attempts to get all values. It doesn't seem like anyone else has had quite this issue. So, any help on this would be greatly appreciated!

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
206 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amy Marty 106 Reputation points
    2021-03-26T15:46:19.797+00:00

    It turns out that because this was a legacy app we needed to add to the web.config the target framework in the http runtime tag in system.web. Per this solution: https://learn.microsoft.com/answers/answers/315169/view.html

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. kobulloc-MSFT 23,181 Reputation points Microsoft Employee
    2021-03-06T17:44:35.273+00:00

    There are a number of reasons why you might run into the "Could not create SSL/TLS secure channel" error but if it works on your local machine and not when you publish to your test environment, it sounds like you may be running into an issue where the operating system is setting the default security protocol for SSL/TLS connections (and that version is not supported by the App Configuration server).

    There is another answer that goes into this in more detail:
    Why can't I connect to Azure App Configuration...

    If that ends up not being the issue, let me know so we can troubleshoot this further.