Krippleintime
Registered Member
- May 12, 2010
- 96
- 13
When I try to run my program I keep getting an error saying that the webclient does not have permissions to the folder which I want to save the downloaded file. I have tried numerous folders, running the program as admin, and also running C# as admin, still the same error. Would I still get the error if I download the file through a Stream instead?
Here is my code:
Any help would be great, can't seem to find a fix to this.
Here is my code:
Code:
WebClient client = new WebClient();
client.DownloadFile(new Uri(dlurl), @"C:\");
MessageBox.Show("Done");
Any help would be great, can't seem to find a fix to this.