locked
relet WCF service lifetime. RRS feed

  • Question

  • All,

     

         I use WCF to implement a communication tool. When the client don't call the service in 10 minutes, the service will be shut donw. How can relet? And i hope the duration is always not over.

     

    Thanks

    Jordan

    Thursday, July 5, 2007 1:50 PM

Answers

All replies

  • I think i should not ask this question here, since the WCF forum is fitter.

     

    Thursday, July 5, 2007 3:47 PM
  • Hi Jordan,

    Welcome to this forum!

     

    I move this question from BCL forum to WCF forum for better responses, where WCF experts live in.

     

     

    Due to new member, by the way,

    For ASP.NET questions, we have http://forums.asp.net for better responses.

    For IIS questions, we have http://forums.iis.net for better responses.

     

    If you have any difficulties in future developing, please feel free to come back.

    Friday, July 6, 2007 1:33 PM
  • Martine,

    Thanks for transfering my question here.

     

     

    All experts,

     

    My service contextmode is signleton, and i must need this mode, how can i make the life of service longer, now the duration is 10 minutes. (It seems the InactivityTimeout is no useful, since my servicecontract doesn't require session.)

     

    Thanks

    Jordan

    Friday, July 6, 2007 3:28 PM
  • what binding are you using,  could you post your config?
    Friday, July 6, 2007 4:52 PM
  • Hi James,

     

    The binding is as following:

     

                <netTcpBinding>
                    <binding name="NewBinding1">
                        <reliableSession inactivityTimeout="24.20:31:23.6470000" enabled="false" />
                    </binding>
                </netTcpBinding>

     

    Thanks

    Jordan

    Friday, July 6, 2007 5:43 PM
  • could you try to increate you receive timeout?

     

     

                 <netTcpBinding>
                    <binding name="NewBinding1" receiveTimeout="00:20:00">
                        <reliableSession inactivityTimeout="24.20:31:23.6470000" enabled="false" />
                    </binding>
                </netTcpBinding>
    Friday, July 6, 2007 6:28 PM
  •  

    I have the default receiveTimeout which is "00:10:00", i will try to reset it as "00:20:00". But does it have the relationship with InactivityTimeout? Could you give some explanation?

     

    Thanks

    Jordan

    Saturday, July 7, 2007 2:20 AM
  • Monday, July 9, 2007 4:42 PM
  • James,

     

    Thank you very much. I see.

     

    Jordan

    Tuesday, July 10, 2007 3:26 PM