G
Guest
Hi,
I have a problem with System.Net.WebClient.DownloadFile() method used in an
aspx page.
The error is: The underlying connection was closed: Unable to connect to the
remote server.
If I run the application locally on the server the code works, but if I run
it from any other computer from the network it doesn't work.
The code I'm using is:
System.Net.WebClient wc = new System.Net.WebClient();
try
{
wc.DownloadFile(downloadPath,pathForDownload);
this.CloseWindow("The template was downloaded");
}
catch(Exception ex)
{
throw ex;
}
I have a problem with System.Net.WebClient.DownloadFile() method used in an
aspx page.
The error is: The underlying connection was closed: Unable to connect to the
remote server.
If I run the application locally on the server the code works, but if I run
it from any other computer from the network it doesn't work.
The code I'm using is:
System.Net.WebClient wc = new System.Net.WebClient();
try
{
wc.DownloadFile(downloadPath,pathForDownload);
this.CloseWindow("The template was downloaded");
}
catch(Exception ex)
{
throw ex;
}