I just simply want to download an mp4 file via embedded server application using the code below;
http://videovlt is server application which is located under virtual pc. and the code below runs on an embedded server application which is running under my pc.
spath = "http://videovlt/videos/7bf9d10b-4006-4b44-9626-e3751df2f4ce.mp4"
fpath = "E:\videos\7bf9d10b-4006-4b44-9626-e3751df2f4ce.mp4"
webClient.DownloadFile(spath, fpath);
But it gives "The remote server returned an error: (500) Internal Server Error."
error!
What is the reason for this?
I tried adding this but didn't work;
webClient.Headers.Add("user-agent", "Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)");