Hi, I tried the above code locally and got the same "Access Denied" error:
WebClient myWebClient = new WebClient(); myWebClient.DownloadFile("http://localhost:1929/2.png", @"C:\Z\)
Try specifying the file name at the end of the directory, saving locally without problems when I run it:
WebClient myWebClient = new WebClient(); myWebClient.DownloadFile("http://localhost:1929/2.png", @"C:\Z\FILENAME.jpg")
invulnarable27
source share