G
Guest
In an ASP.NET application I have to perform a file downloading task
from a web server not exposed to internet, ie
Internet Client-->MyServer-->SecureServer-->MyServer--> Internet Client
All works fine when I have to download a pdf or an image file but when I try
to access a zip file I obtain a 401 error ( unauthorized access )
The code I use is:
string uri = "http://SecureServer/TestSolution/Test.zip";
string fileName = "C:\\MyServer\\ClientFile.zip";
WebClient wc = new WebClient();
wc.Credentials = CredentialCache.DefaultCredentials;
wc.DownloadFile(weburi, fileName);
Any help would be appreciated,
Thanks in advance
from a web server not exposed to internet, ie
Internet Client-->MyServer-->SecureServer-->MyServer--> Internet Client
All works fine when I have to download a pdf or an image file but when I try
to access a zip file I obtain a 401 error ( unauthorized access )
The code I use is:
string uri = "http://SecureServer/TestSolution/Test.zip";
string fileName = "C:\\MyServer\\ClientFile.zip";
WebClient wc = new WebClient();
wc.Credentials = CredentialCache.DefaultCredentials;
wc.DownloadFile(weburi, fileName);
Any help would be appreciated,
Thanks in advance