Advertisement

05.08.2008 at 06:25AM PDT, ID: 23385927
[x]
Attachment Details

WebClient

Asked by erenpasa in .Net Editors & IDEs

Tags: c#, .net 2005

Hi,
I am upload a file with System.Net.WebClient webClient = new System.Net.WebClient()... My server side is php. At server side, server process file which i uploaded file. And it can be take long time.And i use set_time_limit(0) for php and there's no problem. But at my desktop application raise timeout error. How can i set timeout value to webclient.
           
Start Free Trial
1:
2:
3:
4:
5:
6:
System.Net.WebClient webClient = new System.Net.WebClient();
 
//here is raise timeout exception.i have to set timeout.
byte[] responseArray = webClient.UploadFile(myWebAddress, file);
 
string resultXML = Encoding.ASCII.GetString(responseArray);
[+][-]05.08.2008 at 11:02AM PDT, ID: 21526979

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]05.08.2008 at 01:18PM PDT, ID: 21528095

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.

 
[+][-]05.13.2008 at 05:18AM PDT, ID: 21554234

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: .Net Editors & IDEs
Tags: c#, .net 2005
Sign Up Now!
Solution Provided By: erenpasa
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628