473,729 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Sock ets.Socket.Send (Byte[] buffer, Int32 offset, Int32
size, SocketFlags socketFlags)
at System.Net.Sock ets.Socket.Send (Byte[] buffer)
at Cassini.Connect ion.WriteEntire ResponseFromStr ing(Int32
statusCode, String extraHeaders, String body, Boolean keepAlive)
at Cassini.Connect ion.WriteErrorA ndClose(Int32 statusCode, String
message)
at Cassini.Connect ion.ProcessOneR equest()
at Cassini.Host.On SocketAccept(Ob ject acceptedSocket)
at
System.Threadin g._ThreadPoolWa itCallback.Wait Callback_Contex t(Object
state)
at System.Threadin g.ExecutionCont ext.Run(Executi onContext
executionContex t, ContextCallback callback, Object state)
at
System.Threadin g._ThreadPoolWa itCallback.Perf ormWaitCallback (Object
state)
Is there any solution to solve this problem in Cassini?

Thanks for your help

Mar 1 '07 #1
4 2228
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.Sock ets.Socket.Send (Byte[] buffer, Int32 offset, Int32
size, SocketFlags socketFlags)
at System.Net.Sock ets.Socket.Send (Byte[] buffer)
at Cassini.Connect ion.WriteEntire ResponseFromStr ing(Int32
statusCode, String extraHeaders, String body, Boolean keepAlive)
at Cassini.Connect ion.WriteErrorA ndClose(Int32 statusCode, String
message)
at Cassini.Connect ion.ProcessOneR equest()
at Cassini.Host.On SocketAccept(Ob ject acceptedSocket)
at
System.Threadin g._ThreadPoolWa itCallback.Wait Callback_Contex t(Object
state)
at System.Threadin g.ExecutionCont ext.Run(Executi onContext
executionContex t, ContextCallback callback, Object state)
at
System.Threadin g._ThreadPoolWa itCallback.Perf ormWaitCallback (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.com wrote in message
news:11******** **************@ 64g2000cwx.goog legroups.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.com wrote in message
news:11******** **************@ 64g2000cwx.goog legroups.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
2397
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. (System.IO.Stream.Write() raises the exception):"An existing connection was forcibly closed by the remote host". The error only happens with fairly large amounts of data (around 24,500 bytes). Here is ToString() of the exception object raised:
0
1970
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 with inner exception message of "An existing connection was forcibly closed by the remote host." I hoped I'll solve my problem with RemoteCertificateValidationCallback delegate which always returns "true", but it isn't called at all for this...
0
1208
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 accessing the database. This also happens from time to time when our application is accessing the database. To make the posting brief, I am just putting part of the exception. Any ideas why this might be happening? Our web application is behind F5...
1
12676
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 to read data from the transport connection: An existing connection was forcibly closed by the remote host. An existing connection was forcibly closed by the remote host
1
4444
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
3056
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 remote host " For n= 0 To lstFileNames.Items.Count - 1 Step 1 Try xImg1 = lstFileNames.Items(n).ToString() ff.UploadFile(xImg1)
2
3903
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): System.Data.SqlClient.SqlException: A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host. The SQL Server (Dell PE1950, 8GB ram, Quad Xeon 2.5G+) is...
1
5406
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 fine. Now, however, we want to setup SQL Mirroring to provide automatic failover. The mirroring works fine. In my test environment, the mirror server becomes active automatically when the service is stopped on the principal server. I can see...
0
8927
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9289
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9210
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8159
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4798
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3242
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2694
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.