VB.Net error: An exception occurred during a WebClient request
Posted on 2017-01-27
Issue: Trying to download files from a web server.
Problem: Receive error: An exception occurred during a WebClient request.
I have developed a VB.Net app, which we call MEPIL. In it, I read an html file that has href references in it to a website where I can download zip files from. I am not a web or network person so there may be more information to tell you than I am and I just don’t know what it is.
Anyway, this process used to work. Now it doesn’t. Now I get the following error:
“An exception occurred during a WebClient request.
Error creating the Web Proxy specified in the ‘system.net/defaultProxy’ configuration settings.”
According to my boss, we don’t use a proxy.
I get this error depending on where I store the VB.Net executable.
If I store the VB.Net executable on our network file server (H:\) drive, then I get this error. However, if I move the executable to my local PC and run it, it works. In both instances I execute the executable from my PC (no remoting in to a server or anything).
Note: I have another open question regarding this VB.Net application related to permissions on a SQL Server stored procedure where similar observations are made, except opposite. With that error, the executable runs successfully if the executable is stored on the H:\drive but it does not run successfully if it is stored my local PC.
Can anyone help me with this?