Hi folks, strange error I'm getting here, I'm trying to connect to the ECB s currency exchange feed which is located at
http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml - it looks nice and simple to use.
However my code is throwing a socket exception when I run it from the server and a system.net.webexception - {"The remote server returned an error: (407) Proxy Authentication Required."} when I run it from within visual studio. I had a sample script which took feeds from the BBC site on my home computer which worked fine but it does not work from my office computer so seems like something is up with the server, no?
I've never come across this type of error before myself so is there anyone that can point in the right direction on this one?
Thanks in advance.
Hi,
It seems that the proxy server of your office requires authentication. If you're using a WebClient class to connect to that xml file, make sure you have set the Proxy property. Also, set the Credential property for the Proxy and it will be working fine.
0 comments:
Post a Comment