How to change WCF session time out value?

You have to increase binding receive timeout, binding receive timeout is responsible for session time out.




<?xml version=”1.0″ encoding=”utf-8″ ?>





                <binding name=”NetTcp_Reliable” receiveTimeout=”00:20:00″>

                    <reliableSession ordered=”false” inactivityTimeout=”00:01:00″

                        enabled=”true” />






                <behavior name=”MetadataBehavior”>

                    <serviceMetadata httpGetEnabled=”true” httpGetUrl=”http://localhost:2526/Service” />





            <service behaviorConfiguration=”MetadataBehavior” name=”Service.ServiceImplementation”>

                <endpoint address=”net.tcp://localhost:2525/Service” binding=”netTcpBinding”

                    bindingConfiguration=”NetTcp_Reliable” contract=”Service.IServiceContract” />






Reliable session inactivity timeout useful when you are not able to send the message because of some network problems, how long we have to retry to send this message.





Comments (2)

  1. Tim says:

    Please provide an example client config to that would use this service.  This would complete the picture for those of us trying to learn WCF.