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
YeeCN - 17 Dec 2004 05:32 GMT
I just discovered something new...
The problems went away when I am connected to the internet with dialup
connection!
Any clue?
Best Regards,
Yee
> Hi,
>
[quoted text clipped - 37 lines]
> Best Regards,
> Yee