Advertisement

01.31.2008 at 08:12PM PST, ID: 23128692
[x]
Attachment Details

Failed WebClient.FileDownload

Asked by cossy74 in Programming Languages

Here is the basic code:
WebClient client = new WebClient();
Uri uri = new Uri(uristr);
filename = uri.Segments[uri.Segments.Length - 1];
client.DownloadFile(uri, filename);

All I am getting is 500 exception. When I use the uri in question i get an 500 exception as well. However not every uri i try cause this problem. if i try a PDF, it opens the PDF. However the files i am trying are dlls and a couple of exes.

can anyone help?Start Free Trial
[+][-]02.13.2008 at 05:18AM PST, ID: 20883857

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming Languages
Sign Up Now!
Solution Provided By: digitalExpress
Participating Experts: 1
Solution Grade: B
 
 
[+][-]02.14.2008 at 05:23PM PST, ID: 20898711

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628