Connection closed exception

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Connection closed exception

    I'm having some difficulties with a Web Service I am developing.

    The following exception occurred when I moved the Web Service from my
    development machine (Win XP SP2 VS.NET 2003) to a test server
    (Win 2003 IIS 6):

    - System.InvalidOperationException

    Message: The underlying connection was closed: An unexpected error
    occurred on a receive.

    The original exception is:


    - System.ComponentModel.Win32Exception {System.Net.Sockets.SocketException}

    Message: An existing connection was forcibly closed by the remote
    host
    Native code: 50004


    The exception does not occur right away but after about 3 minutes of
    processing

    After searching through this group I found that it might have something
    to do with the KeepAlive settings of the WebRequest.
    I did override the GetWebRequest method to make sure that KeepAlive was
    set to false but it did not fix the problem.

    We use ISA Server 2000 as a Proxy and the proxy settings on the client
    are set to bypass the proxy for the server name and the server address.

    IIS does not seem to realize that an exception occurred since it
    continues processing the request.

    I now think that two things could cause this exception is caused by ISA
    Server, forcibly closing the connection after some preset timeout.


    If it is the case where is this setting for this in ISA Server ?
    Simon

    Simon Guest

  2. Similar Questions and Discussions

    1. broadcasting when a connection is closed
      I am writing a streaming program and need to know if there is a way to tell when a published stream is closed when the publisher closes the program...
    2. connection not REALLY closed with AS3
      I'm using media server with AS3, when I say "application.rejectConnection(client);" at the server side code the clients counter at the management...
    3. Closed connection is being re-used
      Hello, I have a windows service (written on .NET 1.1/C#) connecting to a webservice at a specified interval. I have a webreference in my project,...
    4. The underlying connection was closed
      Two separate machines: 1. Web Services Client (for load testing): A simple .net console app (.NET 1.1 Framework) 2. Web Services Server: A .Net...
    5. connection closed
      yes i did close the connection, infact ultradev did this for me. This works before, I mean in other files and I am using the same format to build new...
  3. #2

    Default Re: Connection closed exception

    Thanks to to good poeple at Microsoft, I found the solution.

    It was simply due to the connection tomeout improperly set in the
    virtual directory.

    It was set to a value higher then 65535 seconds which is the upper
    limit and defaulted to 120 seconds.

    Unfortunatly you can only know the value is invalid when you look at
    the event log after restarting IIS.

    Simon

    Simon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139