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

"System.Net.WebException: 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.WebException: The remote name could not be resolved:
'www.somewebserver.com'
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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 48062
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.WebException: The remote name could not be resolved:
'www.somewebserver.com'
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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 aClickOnceapplication 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.WebException:The remote name could not be resolved:
'www.somewebserver.com'
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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
ClickOnceapplication 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
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: ...
1
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...
3
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...
2
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...
0
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...
14
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...
1
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...
2
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....
1
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
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
0
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...

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.