Click here to Skip to main content
15,922,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i am new in wcf,
i have developed wcf service which execute task and complete the task but it gives error.
error is :

The request channel timed out while waiting for a reply after 00:00:58.8637728. 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.

please suggest help how to increase execution time in detail.
Posted

I would suggest that you should first evaluate if your processing time is in fact taking more than one minute. If it isn't then you have a different problem.

If your processing time is taking that long (and you can't make it take less time) then you will need to set up a binding description and change the timeout value in there.

Following is a good enough example of a configuration binding. However keep in mind it is ONLY an example. It has the timing values but you can't just start using it without at least looking at the rest of it.

Windows Communication Foundation QuickStart - Multiple Binding VS2010[^]
 
Share this answer
 
Comments
prateekfgiet 5-Mar-12 4:39am    
hi, i have done according to above given topic,now time out problem is fixed but got other error.

when i run wcf service from visual studio it runs wcf test client if i add his ref(http://localhost:608547/mywebservice.svc) to new web site it will works fine but when i add web service usnig url(http://192.168.1.16/mywebservice.svc) it will send error

You cannot call a method on a null-valued expression.At C:\shutdown.ps1:17 char:37+ $result = $vmshut.InitiateShutdown <<<< ("$true","no comment") + CategoryInfo : InvalidOperation: (InitiateShutdown:String) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull unable to shutdown wintest.
VJ Reddy 13-Jun-12 1:21am    
Good answer. 5!
Something is null. Figure out what it is and fix it.
 
Share this answer
 
try this
SeriveClient client=new ServiceClient();
    var time = new TimeSpan(0, 3, 0);
    client.Endpoint.Binding.CloseTimeout = time;
                client.Endpoint.Binding.OpenTimeout = time;
                client.Endpoint.Binding.ReceiveTimeout = time;
                client.Endpoint.Binding.SendTimeout = time;
 
Share this answer
 

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