Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / December 2004

Tip: Looking for answers? Try searching our database.

Socket Error: Remoting Requires DNS?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
YeeCN - 17 Dec 2004 02:57 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.