Error connecting to https://developer.intuit.com/.well-known/openid_sandbox_configuration: An error occurred while sending the request.
##Code - C#.net
DiscoveryPolicy dpolicy = new DiscoveryPolicy();
dpolicy.RequireHttps = true;
dpolicy.ValidateIssuerName = true;
if (discoveryUrl != null && clientID != null && clientSecret != null)
discoveryClient = new DiscoveryClient(discoveryUrl);
doc = await discoveryClient.GetAsync();
I found that objDoc = await objDiscoveryClient.GetAsync(); returns a error, Error connecting to https://developer.intuit.com/.well-known/openid_sandbox_configuration: An error occurred while sending the request. I can connect to it through a browser with no problem.
Can someone suggest some solution or what can be the issue, because nothing is changed in my code but I am getting the errors?