N
news.microsoft.com
Hi All,
I am trying to download a file from a C# Windows Application (Ex: from
http://localhost/fileName" to "C:\fileName1") using the below code
WebClient myWebClient = new WebClient();
myWebClient.DownloadFile("http://localhost/UploadFiles/File.xml","sample.xml
");
But I am getting the following Exception: "System.Net.WebException: The
remote server returned an error: (401) Unauthorized"
Anyone have idea why I get this error.
Thanks in Advance
Pradeep
I am trying to download a file from a C# Windows Application (Ex: from
http://localhost/fileName" to "C:\fileName1") using the below code
WebClient myWebClient = new WebClient();
myWebClient.DownloadFile("http://localhost/UploadFiles/File.xml","sample.xml
");
But I am getting the following Exception: "System.Net.WebException: The
remote server returned an error: (401) Unauthorized"
Anyone have idea why I get this error.
Thanks in Advance
Pradeep