Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear Friends,

Here iam Created one sample Wcf Service and iam Calling my Service in another Application.one to five times my service is working perfectly.After that the Exceptions is raising.Time out Exception is occured like that.How to solve this problem.

Time out Exception is Occured:The request channel timed out while waiting for a reply after 00:01: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.




Regards,

AnilKumar.D
Posted
Updated 18-May-12 0:13am
v2

Normally there will be a WCF communication channel through which the client is sending request to server and server responds via that channel. When communication is not happening or when the channel remains idle, WCF will kill the channel.
we can manually configure the timeout for WCF channel. To do this, there are two ways

1. Increase the timeout configuration in your app.config.
2. Implement a heart beat mechanism which will send request to some methods at server side and ensure that some communication is happening in the channel and channel timeout never happens.

Increase the timeout configuration in your app.config
Change your "receiveTimeout" configuration in your app.config at server side to
XML
receiveTimeout="10675199.02:48:05.4775807"
Here the value given is the max value possible.
 
Share this answer
 
v2
Receiving a time out exception rarely relates to a timeout. It's one of the generic errors which get raised when the framework/transport doesn't actually know what the fault is.

Try enabled WCF tracing on your service. This should give you more details on why the call is failing.

Configure Tracing[^]
 
Share this answer
 
v2
Comments
Anil Honey 206 18-May-12 7:04am    
Iam not Getting Claerly about this article can u explain in clear mode

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