ASP.NET (OWIN) example is not working - IOException: IDX20804: Unable to retrieve document

Hello,
the ASP.NET (OWIN) example is not working although I have downloaded the pre configured example for our customer installation on test system.
Allowed Callback URLs and Allowed Logout URLs are configured as described in tutorial.
Application can be compiled and started without problem.

But after clicking the Login-Button the application starts loading and after ~20 seconds I get this error Message:

Blockquote
IOException: IDX20804: Unable to retrieve document from: ‘https://xxx-xx-xxxx48.eu.auth0.com/.well-known/openid-configuration

But when I enter the displayed url into my browser, the JSON document can be diesplayed without any problem.

What goes wrong? Is this possibly a configuration issue, or a http/https problem? I am working for 3 days on this issue, but witout any success.

Kind regards
Roman

Did you solve this? I have the same issue.

For future reference, setting the TLS explicit to 1.2 solved this issue for me:

        System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
1 Like

Thanks for sharing it with the rest of community!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.