Views: 16.4K
Replies: 2
Archived
|
Request channel time outHi all,
I'm stepping through code in Patterns in Action and if I pause too long (or am interrupted) I get the following time-out message: System.TimeoutException was unhandled by user code. Message="The request channel timed out while waiting for a reply after 00:00: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." If I attempt to run the code again without first stopping & restarting the solution, the ServiceChannel is in a Faulted state and cannot be used. I've looked through the PDF but don't see where I can adjust the time-out. I adjusted the receiveTimeout of the wsHttpBinding section in the Hosting Layer's ActionServer's web.config, but that didn't change things. Any ideas on adjusting this so I can pause while stepping through code? Thanks, Kelley Kelley Garrett, May 12, 2010
|
|
Reply 1Thanks Sreenivas - it works great now. Your help is much appreciated.
Kelley Garrett, May 13, 2010
|
|
Reply 21. Open the file "..\DoFactory\Design Pattern Framework 3.5 CS\Patterns In Action\ASPNETWebApplication\Web.config"
2. In lines 165, you would see the below entry by default. < binding name="WSHttpBinding_IActionService" receiveTimeout="00:30:00">3. Change it to <binding name="WSHttpBinding_IActionService" receiveTimeout="00:30:00" sendTimeout="00:30:00"> 4. Cleanup your project, rebuild and try it. It would save you upto 30 minutes. 5. If you want more time, increase the sendTimeout="00:30:00" Sreenivas Manyam Rajaram, May 13, 2010
|