By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,357 Members | 1,021 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,357 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.