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

The underlying connection was closed: The remote name could not be resolved.

Dim ws As New GetInfoByZIP.USZip

works great if I have an internet connection on my dev machine.

As soon as I lose or disable my internet connection I get

"The underlying connection was closed: The remote name could not be resolved."

It isn't as simple as just checking to see if ws is null or nothing.

I don't want to utilize the solution I have seen involving webRequest.KeepAlive = False because there is nothing to keep alive. It simply can't get out to the web service.

Any ideas?

Thanks,

-Greg

Nov 23 '05 #1
2 3344
for now :

catch e as exception

If e.Message = "The underlying connection was closed: The remote name could not be resolved." Then

Exit Function

End If

End try

"hazz" <hazz@sonic_net> wrote in message news:uh*************@TK2MSFTNGP15.phx.gbl...
Dim ws As New GetInfoByZIP.USZip

works great if I have an internet connection on my dev machine.

As soon as I lose or disable my internet connection I get

"The underlying connection was closed: The remote name could not be resolved."

It isn't as simple as just checking to see if ws is null or nothing.

I don't want to utilize the solution I have seen involving webRequest.KeepAlive = False because there is nothing to keep alive. It simply can't get out to the web service.

Any ideas?

Thanks,

-Greg

Nov 23 '05 #2
hB
did not get what you want exactly, but you should have try cath over ws
calls.
(since you cannot control the physical connectivity)

---
hB

Nov 23 '05 #3

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

Similar topics

0
by: ashima | last post by:
Hi, I am trying to add a webservice.I provide a reference to the wsdl file on the server. It works fine when I compile the code on my machine. But on the server, I get the above error with the same...
26
by: Rajeev Tipnis | last post by:
http://support.microsoft.com/default.aspx?scid=kb;en- us;819450 Questions: 1) Is this patch (fix) applicable to the .NET 1.1 Framework as well? That is, if we have Framework 1.1 (On...
3
by: MattM | last post by:
I am getting the "The underlying connection was closed: Unable to connect to the remote server" message when trying to connect an ASPX page to a simple Hello World web service. I have read a few...
2
by: niklesh | last post by:
Dear all, when i am trying to giving web reference to webservices i am getting above said error.. i tried to find out what is the main problem then i got from microsoft support that i have to...
3
by: Rahul Anand | last post by:
As per our requirements we have a web service which internally connects (Simple HTTP Post Request) to a remote server to initiate some work. We are calling the web service method asynchronously...
0
by: RichardH | last post by:
I have a win32 .net app that uses a webservice to access a databse. AOL clients, using dial-up, receive the the exception "The underlying connection was closed. The remote name could not be...
3
by: Monty | last post by:
OK, I had an issue with this and found lots of advice that did not apply, so I'm posting what I found hoping it might help someone else. Here's the sitch: you have a COM app that calls to a .Net...
0
by: Harrison2 | last post by:
Hello! I have following problem. I write a self-updating application using Microsoft Application Blocks (Updater). And if I run it on Win XP, I have following error: The underlying...
0
by: davidson1 | last post by:
Hai in my Project how to send sms from computer to mobile .... Front-End :- ASP.NET(vb) I am using the following code, but it shows me a ERROR "The underlying connection was closed: The...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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.