A
Anbu
Hi All,
I'm using the Cassini component in my desktop application to create a
web site to host the web services. The application works fine in
normal scenario. If the system is kept idle for some time, the
application getting terminated with the following error:
Unhandled Exception : An existing connection was forcibly closed by
the remote host
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32
size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Send(Byte[] buffer)
at Cassini.Connection.WriteEntireResponseFromString(Int32
statusCode, String extraHeaders, String body, Boolean keepAlive)
at Cassini.Connection.WriteErrorAndClose(Int32 statusCode, String
message)
at Cassini.Connection.ProcessOneRequest()
at Cassini.Host.OnSocketAccept(Object acceptedSocket)
at
System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object
state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at
System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object
state)
Is there any solution to solve this problem in Cassini?
Thanks for your help
I'm using the Cassini component in my desktop application to create a
web site to host the web services. The application works fine in
normal scenario. If the system is kept idle for some time, the
application getting terminated with the following error:
Unhandled Exception : An existing connection was forcibly closed by
the remote host
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32
size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Send(Byte[] buffer)
at Cassini.Connection.WriteEntireResponseFromString(Int32
statusCode, String extraHeaders, String body, Boolean keepAlive)
at Cassini.Connection.WriteErrorAndClose(Int32 statusCode, String
message)
at Cassini.Connection.ProcessOneRequest()
at Cassini.Host.OnSocketAccept(Object acceptedSocket)
at
System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object
state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at
System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object
state)
Is there any solution to solve this problem in Cassini?
Thanks for your help