473,327 Members | 2,065 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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

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(I nt32
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.WaitCallb ack_Context(Object
state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at
System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object
state)
Is there any solution to solve this problem in Cassini?

Thanks for your help

Mar 1 '07 #1
4 2210
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

"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(I nt32
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.WaitCallb ack_Context(Object
state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at
System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object
state)
Is there any solution to solve this problem in Cassini?

Thanks for your help

Mar 2 '07 #2
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?

Mar 13 '07 #3
Check to see if the suggestions in this article are helpful.

http://blogs.msdn.com/dgorti/archive...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/
===================================
"Anbu" <An*****************@gmail.comwrote in message
news:11**********************@64g2000cwx.googlegro ups.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?

Mar 13 '07 #4
You might also want to consider using Cassini v2.

An update was posted by its author at:
http://blogs.msdn.com/dmitryr/archiv...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/
===================================
"Anbu" <An*****************@gmail.comwrote in message
news:11**********************@64g2000cwx.googlegro ups.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?

Mar 13 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike | last post by:
VB .NET 2003, Pocket PC 2003, CF 1.0 SP 2 Only when I use a proxy server, I'm getting this error when attempting to write data to a Stream object from an HTTPWebRequest object....
0
by: SisAndz | last post by:
Hello, I'm trying to do a secure connect to the site https://212.77.100.18/p/ with ..net 2.0 HttpWebRequest class, unfortunately for some reason I'm not able to do that - WebException is thrown...
0
by: Sanjay T | last post by:
Hi, We are using ASP.Net 2005 and SQL Server 2005. We are storing sessions in the database. From time to time we get the following exception in the application while the ASP.Net session tries...
1
by: balaya | last post by:
was an error downloading 'https://pushmxtest.equitynational.com/EquityNational/PushMXService.svc/secure'. The underlying connection was closed: An unexpected error occurred on a receive. Unable...
1
by: Jim Hubbard | last post by:
We are using a .Net 2.0 app that connects to a SQL 2005 Express DB and we keep getting this message on the clients. Has anyone seen this error or a solution to it?
1
by: rhepsi | last post by:
hii all, When im trying to upload all the resized photos from the local server onto the live ftp server, im getting an error stating tht: "An existing connection was forcibly closed by the...
2
by: OrcaDK | last post by:
Hi I've started receiving sporadic SqlExceptions throughout my .NET applications (crossing ASP.NET, Windows Services, Winforms - doesn't seem application code specific):...
1
by: mikerudy | last post by:
I have an 3rd-party application that uses a SQL back-end, but uses Access 2000 (linked tables all using the same DSN) as an intermediary. We recently upgraded from SQL 7 to SQL 2005, which went...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.