PC Review


Reply
Thread Tools Rate Thread

A connection attempt failed problem

 
 
Dennis
Guest
Posts: n/a
 
      24th Aug 2006
I'm getting the following problem occasionally...the application will
work perfectly well for a period of time and then this pops up.

I have tried turning off the default proxy in the web.config which I
had seen on other posts but that did not solve the problem.

Any assistance or ideas would be appreciated


Thanks


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

A connection attempt failed because the connected party did not properly
respond after a period of time, or established connection failed because
connected host has failed to respond
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: A connection
attempt
failed because the connected party did not properly respond after a
period
of time, or established connection failed because connected host has
failed
to respond

Source Error:


Line 28: xInputDoc = New System.Xml.XmlDocument()
Line 29: strUrl = "http://www.weather.gov/alerts/us.cap"
Line 30: xInputDoc.Load(strUrl)
Line 31:
Line 32: xNodeList = xInputDoc.GetElementsByTagName
("cap:info")


Source File: D:\Web\Weather\Default2.aspx.vb Line: 30

Stack Trace:


[SocketException (0x274c): A connection attempt failed because the
connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to
respond]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,
SocketAddress socketAddress) +1002146
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,
Socket s4, Socket s6, Socket& socket, IPAddress& address,
ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout,
Exception& exception) +431

[WebException: Unable to connect to the remote server]
System.Net.HttpWebRequest.GetResponse() +1502011
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +61
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +1868464
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role,
Type
ofObjectToReturn) +51
System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +44
System.Threading.CompressedStack.runTryCode(Object userData) +54

System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteed
Cleanup(TryCode
code, CleanupCode backoutCode, Object userData) +0
System.Threading.CompressedStack.Run(CompressedStack compressedStack,
ContextCallback callback, Object state) +174
System.Xml.XmlTextReaderImpl.OpenUrl() +199
System.Xml.XmlTextReaderImpl.Read() +50
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) +145
System.Xml.XmlDocument.Load(XmlReader reader) +96
System.Xml.XmlDocument.Load(String filename) +157
Default2.Page_Load(Object sender, EventArgs e) in D:
\Web\Weather\Default2.aspx.vb:30
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +
1061




------------------------------------------------------------------------
--------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET
Version:2.0.50727.42
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      24th Aug 2006
Looks to me like the Weather service just didn't respond. Not much you can do
about that.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"Dennis" wrote:

> I'm getting the following problem occasionally...the application will
> work perfectly well for a period of time and then this pops up.
>
> I have tried turning off the default proxy in the web.config which I
> had seen on other posts but that did not solve the problem.
>
> Any assistance or ideas would be appreciated
>
>
> Thanks
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> A connection attempt failed because the connected party did not properly
> respond after a period of time, or established connection failed because
> connected host has failed to respond
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.Net.Sockets.SocketException: A connection
> attempt
> failed because the connected party did not properly respond after a
> period
> of time, or established connection failed because connected host has
> failed
> to respond
>
> Source Error:
>
>
> Line 28: xInputDoc = New System.Xml.XmlDocument()
> Line 29: strUrl = "http://www.weather.gov/alerts/us.cap"
> Line 30: xInputDoc.Load(strUrl)
> Line 31:
> Line 32: xNodeList = xInputDoc.GetElementsByTagName
> ("cap:info")
>
>
> Source File: D:\Web\Weather\Default2.aspx.vb Line: 30
>
> Stack Trace:
>
>
> [SocketException (0x274c): A connection attempt failed because the
> connected party did not properly respond after a period of time, or
> established connection failed because connected host has failed to
> respond]
> System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,
> SocketAddress socketAddress) +1002146
> System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
> System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,
> Socket s4, Socket s6, Socket& socket, IPAddress& address,
> ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout,
> Exception& exception) +431
>
> [WebException: Unable to connect to the remote server]
> System.Net.HttpWebRequest.GetResponse() +1502011
> System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
> credentials) +61
> System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
> credentials) +1868464
> System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role,
> Type
> ofObjectToReturn) +51
> System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +44
> System.Threading.CompressedStack.runTryCode(Object userData) +54
>
> System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteed
> Cleanup(TryCode
> code, CleanupCode backoutCode, Object userData) +0
> System.Threading.CompressedStack.Run(CompressedStack compressedStack,
> ContextCallback callback, Object state) +174
> System.Xml.XmlTextReaderImpl.OpenUrl() +199
> System.Xml.XmlTextReaderImpl.Read() +50
> System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
> preserveWhitespace) +145
> System.Xml.XmlDocument.Load(XmlReader reader) +96
> System.Xml.XmlDocument.Load(String filename) +157
> Default2.Page_Load(Object sender, EventArgs e) in D:
> \Web\Weather\Default2.aspx.vb:30
> System.Web.UI.Control.OnLoad(EventArgs e) +99
> System.Web.UI.Control.LoadRecursive() +47
> System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +
> 1061
>
>
>
>
> ------------------------------------------------------------------------
> --------
> Version Information: Microsoft .NET Framework Version:2.0.50727.42;
> ASP.NET
> Version:2.0.50727.42
>

 
Reply With Quote
 
Dennis
Guest
Posts: n/a
 
      25th Aug 2006
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
<(E-Mail Removed)> wrote in
news:B54893C2-4CA9-472F-9D28-(E-Mail Removed):

> Looks to me like the Weather service just didn't respond. Not much you
> can do about that.
> Peter
>



When I get the "connection attempt failed" message from the application
running on server...i get it repeatedly...during the same period if I
browse directly to the external site (www.weather.gov) it responds
correctly. Eventually the problem on the server will clear and the
application displays correctly.

I don't really think its an issue of the external site being down....

thanks for responding
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Http Post Error: A connection attempt failed because the connectedparty did not properly respond after a period of time, or establishedconnection failed because connected host has failed to respond. Deepu Microsoft Dot NET Framework 1 9th Jul 2009 05:09 PM
Logon Attempt Failed /w Remote Desktop Connection =?Utf-8?B?Q3VydGlzIE0u?= Windows Vista General Discussion 3 9th Sep 2007 09:01 PM
Error 792: The L2TP connection attempt failed because security neg =?Utf-8?B?QnVudHk=?= Microsoft Windows 2000 RAS Routing 1 8th May 2005 03:42 PM
Error 720 - the connection attempt failed =?Utf-8?B?c29vbiBoZW5n?= Windows XP Networking 0 26th Mar 2005 05:33 PM
The Connection attempt failed Ray Microsoft Windows 2000 Windows Updates 0 17th May 2004 02:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:11 PM.