Exception when calling web service: The underlying connection was closed
-
Hi all, I'm using WSE 3.0 in my project to connect a web application to a web service. I'm using username token for WSE. In some pages where I have upload file controls I get an exception saying : The underlying connection was closed: An unexpected error occurred on a receive. I have searched online and found that this problem is a well known bug in .NET 1.1 and I also found a way to solve it by modifying some code in the reference.cs file of the web service proxy in the web application. However I didn't manage to find a reference to the problem in .NET 2.0. Is there a way to access the reference.cs file in a web application developped with .NET 2.0? If not, how can I fix this problem? I have also tried to turn off the keep-alive option of the website from the IIS console but that resulted in other behavioral problems. I'm using Windows Server 2003 with IIS 6. Ultimately, if there is no way to fix this, can someone direct me towards a file upload control that I could use that might fix this problem? I am wondering if this problem is related to another problem I am having: when uploading files (one or multiple file upload controls on same page) a timeout occurs where IE shows that it is still waiting for a reply from the server and nothing happens. If I check the server, I notice that it has finished processing the request and the database has been populated with the results but nothing goes back to the IE client. Thanks for your help, Talal
-- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook