Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The request channel timed out while waiting for a reply after 00:30:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
We have a program for uploading files,for that we created a timer.The timer elapsed event handler call the methoad for file uploading. The file uploading methoad create a proxy object and call the wcf method (proxyObject.ProcessUpload(path))
I have put a 20 files(size 40mb above),6 files has uploaded but after got exception Timeout.
we have checked the followings:
1.Increase receiveTimeout then increase the sendTimeout separately and both at the same time.
2.Then we have add" [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]" but again failed.

Sample code :
public void UploadFiles(string pdffilepath)
{
xxClient client = new xxClient();
try
{
// Prepare the files for the upload, ..
string pdfFileName = Path.GetFileNameWithoutExtension(pdffilepath));

// ..upload the files
client.Open();
client.ProcessUpload(pdffilepath);

client.Close();
}

catch (TimeoutException exception)
{ // Communication timeout

client.Abort();
throw exception;
}
}
Posted
Comments
stibee 3-May-13 21:38pm    
How is the request limitation. How many MB?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900