È possibile rilevare/riutilizzare tali impostazioni?Come rilevare/utilizzare automaticamente le impostazioni del proxy IE in .net HttpWebRequest
Come?
L'eccezione sto ottenendo è Questa è l'eccezione durante la connessione al http://www.google.com
System.Net.WebException: Unable to connect to the remote server --->
System.Net.Sockets.SocketException: 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 66.102.1.99:80
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,
SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,
Socket s4, Socket s6, Socket& socket, IPAddress& address,
ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout,
Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at mvcTest.MvcApplication.Application_Start() in
C:\\home\\test\\Application1\\Application1\\Program.cs:line 33"
Se stai ricevendo un'eccezione, si prega di inviare il tutto: ex.ToString(). L'eccezione –
è superiore a – Kumar
Questo è più probabilmente un problema con il firewall. Non stai ottenendo una connessione. –