C# 2008 SP1
I am using the code to detect if a proxy has been set under \"Internet Options\". If there is a proxy then I will set this in my webclient.
So I
Setting my request proxy to WebRequest.GetSystemWebProxy() solved the problem.
WebRequest.GetSystemWebProxy()
WebProxy.GetDefaultProxy() is the actual way but it is now deprecated.
WebProxy.GetDefaultProxy()