Can't get remoted objects when Win2003 is disconnected from a network
From: Dave Morse (dmorse_at_veramark.com)
Date: 02/21/05
- Next message: Theo: "Remote stream deserialization"
- Previous message: nicolas.bouchard_at_gmail.com: "SAO with Database connection"
- Next in thread: Sunny: "Re: Can't get remoted objects when Win2003 is disconnected from a network"
- Reply: Sunny: "Re: Can't get remoted objects when Win2003 is disconnected from a network"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Feb 2005 18:04:45 -0500
Hello all, I have a process running on my machine that hosts a singleton
object and is listening on http port 8001. I also have client code that uses
Activator.GetObject to retrieve a proxy to the object using a URL like:
http://127.0.0.1:8001/MyObject.rem
My Windows 2003 server has a single network adapter with all of the default
DHCP enabled settings. Normally it is connected to the network and all of
the remoting stuff works just fine. The problem is if the machine is
disconnected from the network (just unplug the cable and re-run my client
code), then my remoting infrastructure falls apart. I am getting the error:
The requested name is valid but no data of the requested type was found
I have found that this is an error which can be caused by DNS in which the
hostname cannot be resolved. However, the same code will execute fine on
Windows 2000, even if I use the machine name instead of the loopback IP
address in the remoting URI. A workaround that prevents this problem is to
manually go into the network connection settings and change the 'Obtain DNS
Server Address Automatically' setting to point to 127.0.0.1, but this is not
a solution to the problem.
Has anyone experienced a similar problem with this using Windows 2003
server, and does anyone know of a way to fix it?
Thanks,
Dave Morse
- Next message: Theo: "Remote stream deserialization"
- Previous message: nicolas.bouchard_at_gmail.com: "SAO with Database connection"
- Next in thread: Sunny: "Re: Can't get remoted objects when Win2003 is disconnected from a network"
- Reply: Sunny: "Re: Can't get remoted objects when Win2003 is disconnected from a network"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|