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

Discussion in 'ASP .Net' started by Anbu, Mar 1, 2007.

  1. Anbu

    Anbu Guest

    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
     
    Anbu, Mar 1, 2007
    #1
    1. Advertisements

  2. RE: Cassini fails with An existing connection was forcibly closed by t

    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(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
    >
    >
     
    =?Utf-8?B?QW5idQ==?=, Mar 2, 2007
    #2
    1. Advertisements

  3. Anbu

    Anbu Guest

    Re: Cassini fails with An existing connection was forcibly closed by t

    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?
     
    Anbu, Mar 13, 2007
    #3
  4. Re: Cassini fails with An existing connection was forcibly closed by t

    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/
    ===================================
    "Anbu" <> wrote in message
    news:...
    >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?
    >
     
    Juan T. Llibre, Mar 13, 2007
    #4
  5. Re: Cassini fails with An existing connection was forcibly closed by t

    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/
    ===================================
    "Anbu" <> wrote in message
    news:...
    >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?
    >
     
    Juan T. Llibre, Mar 13, 2007
    #5
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    12,223
    Esmond Pitt
    Mar 3, 2005
  2. Brad
    Replies:
    9
    Views:
    36,270
    nealpat
    Mar 28, 2007
  3. =?Utf-8?B?U2FuamF5IFQ=?=

    ASP State: An existing connection was forcibly closed by...

    =?Utf-8?B?U2FuamF5IFQ=?=, May 24, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    3,597
    =?Utf-8?B?U2FuamF5IFQ=?=
    May 24, 2006
  4. iKiLL
    Replies:
    0
    Views:
    639
    iKiLL
    Dec 20, 2006
  5. Artur
    Replies:
    1
    Views:
    880
  6. iKiLL
    Replies:
    0
    Views:
    806
    iKiLL
    Dec 20, 2006
  7. Wil Peck
    Replies:
    2
    Views:
    1,322
    Wil Peck
    Jan 17, 2008
  8. Dmitri Kondratiev
    Replies:
    3
    Views:
    358
    Dmitri Kondratiev
    Sep 24, 2006
Loading...