C
csharpula csharp
Hello,
I am trying to download a file and get a current error:
Download(...): Unable to download file
Access to the path 'C:\Temp\aaa.zip' is denied.
While I was downloading with this code:
_webClient = new WebClient();
_webClient.DownloadFile(httpPath, filePath);
Another thing is that I am doing this action for few threads and each
thread creates it's own filePath (but I don't think it's related to it).
How to avoid this error?
Thank you!
I am trying to download a file and get a current error:
Download(...): Unable to download file
Access to the path 'C:\Temp\aaa.zip' is denied.
While I was downloading with this code:
_webClient = new WebClient();
_webClient.DownloadFile(httpPath, filePath);
Another thing is that I am doing this action for few threads and each
thread creates it's own filePath (but I don't think it's related to it).
How to avoid this error?
Thank you!