Can't get remoted objects when Win2003 is disconnected from a network

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dave Morse (dmorse_at_veramark.com)
Date: 02/21/05


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



Relevant Pages

  • Re: Cant get remoted objects when Win2003 is disconnected from a network
    ... I have a process running on my machine that hosts a singleton ... > My Windows 2003 server has a single network adapter with all of the default ... then my remoting infrastructure falls apart. ... > manually go into the network connection settings and change the 'Obtain DNS ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: MS SQL Server 2000
    ... Binary formatting isn't necessarily "faster" it just ... requires less data to travel over the network. ... Remember with remoting, the actual instantiation of an object exists on the ... Finally, with regards to the database access, Windows authentication is ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Question regarding sharing objects between applications
    ... the remoting infrastructure can detect two scenarios: ... the binary tcp channel uses a TCP socket to ... and serializes the message data to the network ... you can try writing them out to a memory mapped file from one ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Beginners remoting question!!
    ... you can get what you want with remoting. ... Run the host process on the network machine. ... Server activated - these objects are created and activated by the ... Client activated - these objects are created upon client request ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Remoting with Multiple Networks
    ... server on the network interface your clients are on. ... I don't know if these will resolve the problem of the high CPU ... All remoting traffic is on one of the networks (the ...
    (microsoft.public.dotnet.framework.remoting)