WebClient call works in WinXP but not on Win7
Question
The following call returns a result in WinXP but not on Win7:
using (WebClient client = new WebClient())
{
var result = client.DownloadString("https://secure.plimus.com/jsp/validateKey.jsp");
}
I get "System.Net.WebException: The operation has timed out" exception
What is it that I'm doing wrong?
Solution
You should try to see if System.Net tracing can provide you more information on the connection attempt,
Better collect trace files from both Windows XP and Windows 7. Compare them and you will see the cause.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow