
JitenderA.46113 (Customer) asked a question.
Hi,
I am getting the following error for an ASP.Net Core 2.0 application on IIS with grant_type Authorization Code.
The application is deployed on two servers (HTTP) with a Load Balancer (HTTPS).
The Metadata Uri works when opened separately but fails when application loads. Below is the error.
WinHttpException: The connection with the server was terminated abnormally
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
HttpRequestException: An error occurred while sending the request.
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
IOException: IDX20804: Unable to retrieve document from: 'https://xxxxx.okta.com/.well-known/openid-configuration'.
Microsoft.IdentityModel.Protocols.HttpDocumentRetriever+<GetDocumentAsync>d__8.MoveNext()
InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://xxxxx.okta.com/.well-known/openid-configuration'.
Microsoft.IdentityModel.Protocols.ConfigurationManager+<GetConfigurationAsync>d__24.MoveNext()
Please suggest the steps to resolve the issue. Thanks in advance.
Regards,
Jitender

Hi Jitender,
Alex here with Okta's Customer Support Team, thank you for reaching out to us.
This sounds like a network connectivity issue, as something seems to be blocking the application from connecting to the uri. If you are still having issues after checking the ports and network config please feel free to open a case with us and we can help you troubleshoot this further.