473,657 Members | 2,753 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 48094
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
5549
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
4170
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
8823
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
10778
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
1451
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
2162
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
6563
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
7941
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
14196
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
8382
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
8297
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8498
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
7311
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
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
5629
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();...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1930
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.