473,385 Members | 1,838 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,385 software developers and data experts.

A connection attempt failed problem

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(Bool ean 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(Objec t xmlResolver) +44
System.Threading.CompressedStack.runTryCode(Object userData) +54

System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteCodeWithGuaranteed
Cleanup(TryCode
code, CleanupCode backoutCode, Object userData) +0
System.Threading.CompressedStack.Run(CompressedSta ck 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
Aug 24 '06 #1
2 9725
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(Bool ean 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(Objec t xmlResolver) +44
System.Threading.CompressedStack.runTryCode(Object userData) +54

System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteCodeWithGuaranteed
Cleanup(TryCode
code, CleanupCode backoutCode, Object userData) +0
System.Threading.CompressedStack.Run(CompressedSta ck 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
Aug 24 '06 #2
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
<pb*******@yahoo.nospammin.comwrote in
news:B5**********************************@microsof t.com:
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
Aug 25 '06 #3

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

Similar topics

13
by: Fortepianissimo | last post by:
Here is the situation: I want my server started up upon connection. When the first connection comes in, the server is not running. The client realizes the fact, and then starts up the server and...
3
by: Dan | last post by:
Hi, I have an access 2003 database which connect to sql server via a DSN that goes through a VPN. The database works fine and everyone can coonect from their normal computers but for anyone working...
0
by: Rob Levine | last post by:
(This post also available at http://roblevine.blogspot.com/2004/11/frustrating-http-connection-behaviour.html in a slightly more readable format!) Hi All, I seem to be having a bit of a...
1
by: edmundleungs | last post by:
It is found that a DB is setup for sometime. One day, the user suddenly cannot connect to DB. We found that the case is as follow: 1. User can connect to DB by issuing command db2 connect...
1
by: OldButStillLearning | last post by:
OK, I am trying to connect to DB2 (z/OS). I have successfully made the connection to the database in the Server Explorer. I am also able to successfully log in to DB2 when I am testing the...
3
by: Amar Gaikwad | last post by:
Hi All, I want to read the contents (only the filenames) from the ftp server. The code which I have throws connection timeout exception :: "A connection attempt failed because the connected...
1
by: mikerudy | last post by:
I have an 3rd-party application that uses a SQL back-end, but uses Access 2000 (linked tables all using the same DSN) as an intermediary. We recently upgraded from SQL 7 to SQL 2005, which went...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.