IDX20803: Unable to obtain configuration from

Hi,

I recently deployed a .Net Core API to a development server and everything was working fine until today, I keep getting this error:

System.InvalidOperationException: IDX20803: Unable to obtain configuration from: ‘https://dev-371936.okta.com/oauth2/default/.well-known/openid-configuration’.

—> System.IO.IOException: IDX20804: Unable to retrieve document from: ‘https://dev-371936.okta.com/oauth2/default/.well-known/openid-configuration’.

System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

On my local machine I don’t have this issue.

Can you help?

Thanks in advance.

what happens when you try to curl this url from your server? have you changed your hosting domain name recently?

Hi Phi1ipp,

Thanks for the reply.

The curl of this url works perfectly on the server, and I can get the configuration json.

There were no changes in hosting domain. Both DEV server and Localhost URLs are configured on the Okta Console.

I have the exact same problem. When I copy the URL into a separate browser tab, I can access the XML file just fine. My dev machine sits on a private network, connected to company network via VPN (all traffic routes through company network), and Okta is (supposedly) configured to work in tandem with local users (authenticated via CookieAuthentication). IIS Express runs on https, with a self-signed certificate. Any ideas?

I managed to solve it by changing the application pool identity from “Applicationpoolidentity” to “Built-in Account”. in built in account service account name and its password is given