|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Cassini fails with An existing connection was forcibly closed by the remote hostI'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 There was similar error reported in BizTalk which creates & removes ports
dynamically. It would be interesting to know how to implement the same in Cassini Show quote "Anbu" wrote: > 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 found the reason for failure of the cassini web server. It's due to
multiple calls to the server at the same time. When I invoke a download functionality implemented in a web site, the cassini fails. Any suggestions? Check to see if the suggestions in this article are helpful.
http://blogs.msdn.com/dgorti/archive/2005/09/18/470766.aspx Juan T. Llibre, asp.net MVP asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =================================== Show quote "Anbu" <Anbu.Thangarathi***@gmail.com> wrote in message news:1173758597.888235.173260@64g2000cwx.googlegroups.com... >I found the reason for failure of the cassini web server. It's due to > multiple calls to the server at the same time. When I invoke a > download functionality implemented in a web site, the cassini fails. > > Any suggestions? > You might also want to consider using Cassini v2.
An update was posted by its author at: http://blogs.msdn.com/dmitryr/archive/2006/03/09/548131.aspx Juan T. Llibre, asp.net MVP asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =================================== Show quote "Anbu" <Anbu.Thangarathi***@gmail.com> wrote in message news:1173758597.888235.173260@64g2000cwx.googlegroups.com... >I found the reason for failure of the cassini web server. It's due to > multiple calls to the server at the same time. When I invoke a > download functionality implemented in a web site, the cassini fails. > > Any suggestions? > |
|||||||||||||||||||||||