Cassini fails with An existing connection was forcibly closed by the remote host

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
 
G

Guest

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
 
A

Anbu

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top