I am in a big corporate behind a proxy. To call a web service the following code works fine:
Dim pr As System.Net.WebProxy = New WebProxy("ipAddress", 8080)
pr.Credentials = System.Net.CredentialCache
binding.Proxy = pr
However the above requires me to know the IP address of the proxy in advance and I have been asked to read the Pac file at run time.
I found this article - http://www.codeproject.com/cs/internet/using_pac_files_proxy.asp
- But in the GetProxyForUrlUsingPac routine it thinks it has been successful but the function returns null.
Any other ideas ?