473,603 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Net.WebE xception - "The underlying connection was closed...

I have built a Windows Service that connects to Sql Server 2000 Reporting
Services via its Web Service interface for the purpose of generating reports.
Intermittently, calls made to the Web Service result in WebExceptions
indicating that the underlying connection was closed. We are running the
application on a box running W2k3 (no SP) and .NET 1.1 SP1.

I have seen a number of postings where people are having problems that
appear similar to mine:
http://www.dotnet247.com/247referenc...39/196568.aspx
http://p2p.wrox.com/topic.asp?TOPIC_ID=4858
http://weblogs.asp.net/jan/archive/2.../28/63771.aspx

Many people seem to have been able to set KeepAlive to false as a work
around. This, however, will not work for me as Reporting Services uses
Integrated Security which requires KeepAlive.
Below is an example of one of the execeptions:

Type:System.Net .WebException
Message:The underlying connection was closed: An unexpected error occurred
on a send.
Source:System.W eb.Services
Stack Trace: at
System.Web.Serv ices.Protocols. WebClientProtoc ol.GetWebRespon se(WebRequest
request)
at
System.Web.Serv ices.Protocols. HttpWebClientPr otocol.GetWebRe sponse(WebReque st
request)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)
at NAMB.ReportingS ervices.Reporti ngService.Rende r(String Report, String
Format, String HistoryID, String DeviceInfo, ParameterValue[] Parameters,
DataSourceCrede ntials[] Credentials, String ShowHideToggle, String& Encoding,
String& MimeType, ParameterValue[]& ParametersUsed, Warning[]& Warnings,
String[]& StreamIds) in C:\DataCentral\ Windows
Services.etp\Re portProcessingS ervice\Web
References\Repo rtingServices\R eference.cs:lin e 653
at
NAMB.DataCentra l.WindowsServic es.ReportGenera tionThread.Rend erReport(Report
report, ReportRequestPa rameterArrayLis t parameters) in C:\DataCentral\ Windows
Services.etp\Re portProcessingS ervice\ReportGe nerationThread. cs:line 183
at
NAMB.DataCentra l.WindowsServic es.ReportGenera tionThread.Gene rateReport(Obje ct
stateInfo) in C:\DataCentral\ Windows
Services.etp\Re portProcessingS ervice\ReportGe nerationThread. cs:line 58
Target Site:System.Net .WebResponse GetWebResponse( System.Net.WebR equest)

Feb 27 '06 #1
0 2665

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1595
by: Jonathan Crowther | last post by:
On one PC the following test code results in an error on the GetResponse line while it works OK on another PC. The only difference that I am aware of is that the one that works is XP while the problem occurs on Windows 2000. I have tested that the Internet connection is OK through IE. Does anyone know what the problem could be? The error is: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a...
0
1297
by: yariv | last post by:
Hello All, I am having a very strange problem. while trying to access http page on the web. I happen to have some problems at specific machines. the exception I get is: ************* Exception Text ************** System.Net.WebException: The operation has timed-out. at System.Net.HttpWebRequest.GetResponse()
0
8553
by: Faiyaz | last post by:
Hello to EveryBody i'm Getting this Peculiar error System.ApplicationException: The remote server returned an error (400) Bad Request. - - > System.Net.WebException: The remote server returned an error (400) Bad Request. At System.Net.HttpWebRequest.CheckFinalStatus ()
5
12798
by: Tim Reynolds | last post by:
My app calls a web service. After a few minutes of inactivity, we receive: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. A call directly after this works fine with no exception. How can I keep this exception from occuring in the first place?
1
3493
by: Tim Reynolds | last post by:
Team, From a windows service, we consume a web service on another server and occasionally receive System.Net.WebException: The underlying connection was closed:. For some clients we call, we do not see this as we ran into this previoulsy, made a posting, and received some suggested code to resolved. The code was put in their proxy classes and was this... protected override WebRequest GetWebRequest(Uri uri) {HttpWebRequest webRequest =...
8
14073
by: Tim Reynolds | last post by:
Our .Net application calls a web method of aplpication 2 that resides on their Apache server. When I as a developer C#, Studios 2003, make the call to their web method from my desktop, I receive no exceptions - completes fine. Their web service url was added as a web reference to our project with no problem. The following was generated as part of the proxy class: /// <remarks/> public DueDateAvailabilityResponse...
4
22709
by: arun.hallan | last post by:
I know this has been asked umpteen times but i cant find an answer to my problem. Very simply, i have a GUI which is trying to call a webservice. The webservice may take any time from 5mins to 30mins (or more). However after 2mins i get the following error: System.Net.WebException: The operation has timed-out The webservice doesnt return anything. I tried the whole thing with the
6
48092
by: =?Utf-8?B?Wm9vZG9y?= | last post by:
I have a ClickOnce application that uses web services. This works from every machine we can test it on; however, a customer has a laptop that fails with an exception (relevant portion of stack trace below - I have replaced the real web server address with a dummy value). --- System.Net.WebException: The remote name could not be resolved: 'www.somewebserver.com' at System.Net.HttpWebRequest.GetRequestStream() at...
2
5872
by: Scott McFadden | last post by:
When I invoke two web service methods sequentially with no delay, the first web method invocation goes smooth while the 2nd one generates the dredded: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. The only way I have been able to make consecutive web method invocations work is by overriding GetRequest and disabling Keep-Alive. The IIS Keep-Alive setting is enabled for 120...
0
2107
by: DBC User | last post by:
Hello, One of my client reports they are getting "System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly." error suddently from the last week. None of my other clients and I am unable to reproduce the problem. I have 4 web services and 2 of the web services seems to be working fine, they are basically authentication and displaying some information. The error happens when they try to...
0
8415
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
8405
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...
0
8273
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3903
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3951
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2430
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
1
1514
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.