.NET Framework Developer Center > .NET Development Forums > .NET Remoting and Runtime Serialization > Is there a way to disable KeepAlives in a Remoting client?
Ask a questionAsk a question
 

QuestionIs there a way to disable KeepAlives in a Remoting client?

  • Wednesday, October 28, 2009 5:20 PMrazorkai Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    A client is getting an intermittent Exception with our application.  The Exception message is

    "The underlying connection was closed: A connection that was expected to be kept alive was closed by the server"

    Now I have read a lot of stuff on the cause of this error and many seem to suggest that keep-alives should be disabled for best performance with Remoting. You can do that from IIS but only at a website level, and we need to to turn them off for on particular application only.  There is plenty of information for doing this when calling a web service but I cannot find a way to do it for Remoting.  Can anyone help?