Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Connection closed exception

Reply
Thread Tools

Connection closed exception

 
 
Simon
Guest
Posts: n/a
 
      12-24-2004
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

 
Reply With Quote
 
 
 
 
Simon
Guest
Posts: n/a
 
      01-18-2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception of type 'System.Web.HttpUnhandledException' wasthrown.Exception has been thrown by the target of an invocation.System.WebSystem.Exception jobs ASP .Net 1 11-16-2007 05:57 PM
while executing my client program i get the exception javax.naming.LinkException: [Root exception is javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: remaining if plz anybody know how to solve this problem then mahesh Java 0 03-08-2007 12:26 PM
Io exception: Broken pipe,Io exception: Connection timed out aemi Java 2 03-02-2007 02:40 AM
Established connection aborted and underlying connection closed Apu Nahasapeemapetilon ASP .Net Web Services 0 11-06-2006 04:24 PM
Opera - .closed not accessible if window is closed? Matt Kruse Javascript 5 09-09-2003 01:27 AM



Advertisments