473,714 Members | 2,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"System.Net.Web Exception: The remote name could not be resolved" e

I have a ClickOnce application that uses web services. This works from every
machine we can test it on; however, a customer has a laptop that fails with
an exception (relevant portion of stack trace below - I have replaced the
real web server address with a dummy value).
---
System.Net.WebE xception: The remote name could not be resolved:
'www.somewebser ver.com'
at System.Net.Http WebRequest.GetR equestStream()
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)
---
Now, the same server also hosts a web site and the user can successfully
navigate to the web site in their web browser and they can launch the
ClickOnce application hosted there, so I know their machine can see the
server, it's just the web service that it doesn't seem to be able to connect
to.

Does anybody have any suggestions as to what the problem may be or what
avenues of exploration could be explored?

I have had the customer connect from several different places, using
different internet connections, with the same outcome each time (i.e.
navigating to website OK, using web service not OK). They do not seem to have
a proxy server set in their internet options, and I am unsure what would
allow a web browser to see the server, but prevent a web service from doing
the same.
Mar 15 '07 #1
6 48111
Hi Zoodor,

If I understood correctly you have a client-server application that uses a
web service. Your client part is installed on the client's laptop. Am I
understanding right?

Resolving computer names can be a DNS server problem.
http://www.bleepingcomputer.com/tuto...utorial51.html

Can you check the host file on the client computer, to see if your computer
ip address is mapped to your computer name? I am wondering in case this will
be a problem if accessing the web will not work either.

Just an idea...

Eugen
"Zoodor" wrote:
I have a ClickOnce application that uses web services. This works from every
machine we can test it on; however, a customer has a laptop that fails with
an exception (relevant portion of stack trace below - I have replaced the
real web server address with a dummy value).
---
System.Net.WebE xception: The remote name could not be resolved:
'www.somewebser ver.com'
at System.Net.Http WebRequest.GetR equestStream()
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)
---
Now, the same server also hosts a web site and the user can successfully
navigate to the web site in their web browser and they can launch the
ClickOnce application hosted there, so I know their machine can see the
server, it's just the web service that it doesn't seem to be able to connect
to.

Does anybody have any suggestions as to what the problem may be or what
avenues of exploration could be explored?

I have had the customer connect from several different places, using
different internet connections, with the same outcome each time (i.e.
navigating to website OK, using web service not OK). They do not seem to have
a proxy server set in their internet options, and I am unsure what would
allow a web browser to see the server, but prevent a web service from doing
the same.
Mar 15 '07 #2
Thankyou for your reply Eugen.
If I understood correctly you have a client-server application that uses a
web service. Your client part is installed on the client's laptop. Am I
understanding right?
Yes, this is correct.
>
Resolving computer names can be a DNS server problem.
http://www.bleepingcomputer.com/tuto...utorial51.html

Can you check the host file on the client computer, to see if your computer
ip address is mapped to your computer name? I am wondering in case this will
be a problem if accessing the web will not work either.

Just an idea...

Eugen
I am getting the customer to replace the hostname in the configuration file
that specifies the web service's location with the actual IP address to see
if this resolves the issue. If it does not, I shall ask him to check his
hosts file.

Thanks again.

Mark
Mar 15 '07 #3
Since only the webservice that is not accessible on an otherwise accessible
site, I would assume it's not the hosts file. Hosts would block an entire
domain, not just portions of it.

Where is the information regarding what server to access stored? Do you have
a config file saved somewhere on the client? Are you storing an IP address or
a name?
>
I am getting the customer to replace the hostname in the configuration file
that specifies the web service's location with the actual IP address to see
if this resolves the issue. If it does not, I shall ask him to check his
hosts file.

Thanks again.

Mark
Mar 15 '07 #4
Second attempt at posting an answer :-)
If I'm correct, a hosts redirection would block an entire domain. If that
were the case, your client wouldn't be able to see the webserver at all let
alone the webservice.

That leads me to the question: where do you store the information about
connecting to the server - do you have a local config file? Are you storing
an IP or an HTML address?

Adrian

"Zoodor" wrote:
Thankyou for your reply Eugen.
If I understood correctly you have a client-server application that uses a
web service. Your client part is installed on the client's laptop. Am I
understanding right?

Yes, this is correct.

Resolving computer names can be a DNS server problem.
http://www.bleepingcomputer.com/tuto...utorial51.html

Can you check the host file on the client computer, to see if your computer
ip address is mapped to your computer name? I am wondering in case this will
be a problem if accessing the web will not work either.

Just an idea...

Eugen

I am getting the customer to replace the hostname in the configuration file
that specifies the web service's location with the actual IP address to see
if this resolves the issue. If it does not, I shall ask him to check his
hosts file.

Thanks again.

Mark
Mar 15 '07 #5
Thanks for your reply Adrian.
That leads me to the question: where do you store the information about
connecting to the server - do you have a local config file? Are you storing
an IP or an HTML address?
Yes, there is a local config file that specifies the server address. I'm not
sure what you mean by an HTML address, but it is specified in the form
http://www.example.com/VirtualDirect...rviceName.asmx. I have asked the
customer to replace the server address (e.g. www.example.com) with its actual
IP address and am currently waiting to hear the result of trying this.

Mark
Mar 16 '07 #6
Mark,

I'm hitting what appears to be the same issue. Did you ever find a
solution?

Thanks!

"Zoodor" wrote:
I have aClickOnceappli cation that uses web services. This works from every
machine we can test it on; however, a customer has a laptop that fails with
an exception (relevant portion of stack trace below - I have replaced the
real web server address with a dummy value).
---
System.Net.WebE xception:The remote name could not be resolved:
'www.somewebser ver.com'
at System.Net.Http WebRequest.GetR equestStream()
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)
---
Now, the same server also hosts a web site and the user can successfully
navigate to the web site in their web browser and they can launch the
ClickOnceapplic ation hosted there, so I know their machine can see the
server, it's just the web service that it doesn't seem to be able to connect
to.
Does anybody have any suggestions as to what the problem may be or what
avenues of exploration could be explored?
Apr 27 '07 #7

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

Similar topics

2
5554
by: Dave | last post by:
These code generates the error: WebRequest request = WebRequest.Create("http://www.yahoo.com"); WebResponse response = request.GetResponse(); Here is the stack trace for the error: WebException: The underlying connection was closed: Unable to connect to the remote server.] System.Net.HttpWebRequest.CheckFinalStatus() +673
1
4177
by: Andrew McNab | last post by:
Hi folks, I have a problem with an MS Access SQL query which is being used in an Access Report, and am wondering if anyone can help. Basically, my query (shown below) gets some records from a couple of tables in my database using INNER JOINS and the WHERE clause to specify the required constraints. However, I also want to read two fields from a *single* record from a table called 'Locations' and then apply one of these field's values...
3
8831
by: Brian Foree | last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend, and have just started getting the following error on 2 ASP.NET pages that had been working until late last week (and I don't think I made any changes to either page other than changing the user control that creates the header). Server Error in '/myApp' Application. ---------------------------------------------------------------------------- ----
2
10790
by: Rossco | last post by:
I have a VB.NET serviced component (COM+), running on a lan, that calls out to an external web service to place an order with a supplier. The problem machine is the middle tier (COM+) for our in house applications, and also has a mail server to service a 100 stores (don't ask me why, I don't like this either). The call to the webservice works correctly on our test COM+ machine but fails on the production machine with the above error. ...
0
1455
by: Jens Kreier | last post by:
Hello everybody! I got a problem with a nearly undocumented (maybe-)bug in the WebClient class. Anyways the problem is as follows: When I try to work with the simple WebClient.DownloadFile(URL) function everything works fine as long as I download static HTML-pages. As soon as I try to get the content of a remote ASP page nothing works and I get a WebException as mentioned in the subject.
14
2172
by: Ronald S. Cook | last post by:
I'm just curious how you would handle this. In the cable industry, Comcast is referred to as an "MSO" (multiple systems operator) meaning they own many cable systems. Therefore a solution must be architected to accommodate "System" as an entity. This means a table in the database named System, a class System, a web form System, etc. Since System is such a reserved word, how should we do this? To rename it "CableSystem" would bug as...
1
6566
by: =?Utf-8?B?cm9zczYxMw==?= | last post by:
I'm puzzled by an error message encountered while creating a Windows Service. In particular, I'm creating a second Windows Service within a Windows Service project, using Visual Studio 2005. The first service works fine. The second service appears to be registered correctly; yet I get the "System error 1083 has occurred." doing a "NET START ServiceName" in the DOS window along with: "The executable program that this service is...
2
7950
by: jjlagtap | last post by:
Hey everyone When I try to open a file i get the Exception listed below. The weird thing is it works when I run the web app locally and when i use a remote server and open a file on my computer. When someone else uses the web app and tries to open a file using the remote server the error below happens. any help? **Code** C# - filepath is a valid file name which is passed via the form. System.IO.BinaryReader br = new...
1
14201
by: Alien | last post by:
Hi guys, I am doing JSP stuff in eclipse and when I open my file, i get a red cross on the line: <%@page import="org.apache.xml.serialize.*"%> When i move my mouse over it says:
0
8795
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9168
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9068
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9009
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6621
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5943
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4462
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4715
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.