Re: Socket Error: Remoting Requires DNS?
From: YeeCN (XnoXspamXyeecn_at_pd.jaring.my)
Date: 12/17/04
- Next message: cnfr: "Re: Creating an interface on a server application"
- Previous message: YeeCN: "Socket Error: Remoting Requires DNS?"
- In reply to: YeeCN: "Socket Error: Remoting Requires DNS?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Dec 2004 13:32:33 +0800
I just discovered something new...
The problems went away when I am connected to the internet with dialup
connection!
Any clue?
Best Regards,
Yee
"YeeCN" <XnoXspamXyeecn@pd.jaring.my> wrote in message
news:eHhJDT#4EHA.1404@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I am working through a tutorial on .NET remoting. I am stuck on the first
> line:
>
> HttpChannel channel = new HttpChannel();
>
> It gives the following socket exception:
>
> WSANO_DATA 11004
> Valid name, no data record of requested type.
> The requested name is valid and was found in the database, but it does not
> have the correct associated data being resolved for. The usual example for
> this is a host name-to-address translation attempt (using gethostbyname or
> WSAAsyncGetHostByName) which uses the DNS (Domain Name Server). An MX
record
> is returned but no A record-indicating the host itself exists, but is not
> directly reachable.
>
>
> Does the error means that I need to connect to a DNS Server? That would be
> mightly inconvenient!
>
> I am using Windows Server 2003 as a workstation (i.e. no domain
controller,
> stand alone).
>
>
> Further testing shows that using .config file give the same socket error.
>
> --------------------------------------------------------------------------
> Still further testing shows that the the following code does work:
>
> ListDictionary channelProperties = new ListDictionary();
> channelProperties.Add("machineName","localhost");
> HttpChannel channel = new HttpChannel(channelProperties,
> new SoapClientFormatterSinkProvider(),
> new SoapServerFormatterSinkProvider());
>
>
> Can somebody explain this to me?
>
> Many thanks in advance.
>
> Best Regards,
> Yee
>
>
- Next message: cnfr: "Re: Creating an interface on a server application"
- Previous message: YeeCN: "Socket Error: Remoting Requires DNS?"
- In reply to: YeeCN: "Socket Error: Remoting Requires DNS?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|