473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Got System.Net.WebException when using WebRequest.getResponse()

I am having a very frustrating intermittent problem. I am making an
A2A call to a remote server and when I issue the:
WebRequest.getResponse call it occasionally fails with the following
error:
<Error description>
Exception Type: System.Net.WebException
Status: ConnectFailure
Response: NULL
Message: The underlying connection was closed: Unable to connect to
the remote server.
TargetSite: Void CheckFinalStatus()
HelpLink: NULL
Source: System

StackTrace Information
*********************************************
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult
asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at EB.CardActivation.UI.ActivateCard.GetCardStatus(St ring MemberID,
String EmployerID)
<End Error Description>

This error occurs approximately 10% of the time.

We are not using a proxy server.

Any assistance would be great

Thanks

Sean Erwin
Nov 18 '05 #1
1 1476
There could be many reasons for getting this. What kind of setup do you have
? Are you using authentication on the server ? If so, what kind ?

Are you issuing multiple requests in a small amount of time?

What kind of OS/Webserver is on the remote server ?

feroze.
--
Remove "user" from the email address to reply to the author.

This posting is provided "AS IS" with no warranties, and confers no rights

Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Sean Erwin" <se****@evolutionbenefits.com> wrote in message
news:2a**************************@posting.google.c om...
I am having a very frustrating intermittent problem. I am making an
A2A call to a remote server and when I issue the:
WebRequest.getResponse call it occasionally fails with the following
error:
<Error description>
Exception Type: System.Net.WebException
Status: ConnectFailure
Response: NULL
Message: The underlying connection was closed: Unable to connect to
the remote server.
TargetSite: Void CheckFinalStatus()
HelpLink: NULL
Source: System

StackTrace Information
*********************************************
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult
asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at EB.CardActivation.UI.ActivateCard.GetCardStatus(St ring MemberID,
String EmployerID)
<End Error Description>

This error occurs approximately 10% of the time.

We are not using a proxy server.

Any assistance would be great

Thanks

Sean Erwin

Nov 18 '05 #2

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

Similar topics

4
by: Justin Malloy | last post by:
I am using the System.Net.Webclient to try and download an XML file from a website but am receiving a HTTP protocol error when running the DownloadFile() sub routine. I did a HTTP trace using...
0
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...
1
by: Sean Erwin | last post by:
I am having a very frustrating intermittent problem. I am making an A2A call to a remote server and when I issue the: WebRequest.getResponse call it occasionally fails with the following error: ...
0
by: yariv | last post by:
Hello All, I am having a very strange problem. while trying to access http page on the web using HTTPWebRequest Class, I happen to have some problems at specific machines. The exception I...
1
by: etantonio | last post by:
Good morning, I've a problem, in the past I translate my site from google or altavista with a code similar to this : <%@ Page Language="c#" Trace="true" Debug="true" %> <%@ import...
3
by: A User | last post by:
Very strange - this code is copy and paste from the net and works on 2 of my 3 development machines - but of course not the machine I need to run it on. I've seen similar posts, but no solutions...
3
by: Anonymous | last post by:
What can cause this error from the following code? An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The underlying connection was closed:...
7
by: Mark Rae | last post by:
Hi, Has anyone successfully used the FTP stuff in the System.Net namespace against a VMS FTP server? I'm trying to do this at the moment and can't even get a directory listing, although there...
1
by: ibaldwinjr | last post by:
Hi, I am trying to get a response from a URL using the HttpWebRequest object. this is my code below. httpRequest = (HttpWebRequest) WebRequest.Create(myurl); httpRequest.Method = "GET";...
3
sid0404
by: sid0404 | last post by:
Hi I am new to the programming in c#, I have an application where I need to get data from a website now I am getting an error message if I give the input as two strings, say Sun Microsystems while...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...

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.