Reputation: 93
I am hosting sample application on IIS server. But when i hit the URL from my local browser , getting error. My IDP is working fine on localhost but not working on IIS server.
1st : do i need to have internet connection on windows server which host my sample app 2nd : when i run idp url on windows server, it does not work as no internet connection
Please help me to understand.
System.Net.WebException: No such host is known. No such host is known.
System.Net.Http.HttpRequestException: No such host is known.
System.Net.Sockets.SocketException (11001): No such host is known.
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken
cancellationToken)
End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at System.Net.WebClient.GetWebResponse(WebRequest request)
at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream)
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at ITfoxtec.Identity.Saml2.Schemas.Metadata.EntityDescriptor.ReadIdPSsoDescriptorFromUrl(Uri
idPMetadataUrl)
Upvotes: 1
Views: 200
Reputation: 5235
I think this error was a failure in DNS name resolution. The application was trying to call an API but it is not able to find the hostname.
Your server should be able to access to the DNS server. Additionally, your DNS server should be able to lookup the hostname that is in your code. Troubleshooting steps: Run ipconfig /all in Command Prompt. Fin the IP addresses of the DNS server in the output. Try to ping it.
Upvotes: 1