Welcome to MSDN Blogs Sign in | Join | Help

MADHU@MICROSOFT BLOG

All About Distributed apps

Syndication

News

Madhu Ponduru works at Microsoft. Everything here, though, is his personal opinion and is not read or approved by Microsoft before it is posted. No warranties or other guarantees will be offered as to the quality of the opinions or anything else offered here.
How to change WCF session time out value?

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

Example:

SERVICE CONFIG:

 

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

    <system.serviceModel>

        <bindings>

            <netTcpBinding>

                <binding name="NetTcp_Reliable" receiveTimeout="00:20:00">

                    <reliableSession ordered="false" inactivityTimeout="00:01:00"

                        enabled="true" />

                </binding>

            </netTcpBinding>

        </bindings>

        <behaviors>

            <serviceBehaviors>

                <behavior name="MetadataBehavior">

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

                </behavior>

            </serviceBehaviors>

        </behaviors>

        <services>

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

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

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

            </service>

        </services>

    </system.serviceModel>

</configuration>


NOTE:

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.

 

 

 

 

Published Saturday, February 24, 2007 8:40 AM by madhu_ponduru@hotmail.com

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Wcf - NetTcpBinding e MaxConnections | hilpers @ Sunday, January 18, 2009 8:39 AM

PingBack from http://www.hilpers.it/2657286-wcf-nettcpbinding-e-maxconnections

Wcf - NetTcpBinding e MaxConnections | hilpers

# re: How to change WCF session time out value? @ Sunday, March 01, 2009 8:07 PM

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.

Tim

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement  
Page view tracker