all groups > dotnet remoting > july 2003 >
You're in the

dotnet remoting

group:

Problem with simple remoting example



Problem with simple remoting example Volkan Arslan
7/28/2003 5:59:27 PM
dotnet remoting: I am trying the sample remoting application "hello" from the quickstart
"Microsoft Visual Studio .NET
2003\SDK\v1.1\QuickStart\howto\samples\remoting\hello" under Windows XP
and .NET 1.1. The applications (server.exe and client.exe) work fine on
same machine, but when I put the server.exe on another machine, and
start server.exe, I get the following exception:

Unhandled Exception: System.ArgumentNullException: Value cannot be null.

Parameter name: type
at System.Runtime.Remoting.WellKnownServiceTypeEntry..ctor(Type type,
String
objectUri, WellKnownObjectMode mode)
at
System.Runtime.Remoting.RemotingConfiguration.RegisterWellKnownServiceType

(Type type, String objectUri, WellKnownObjectMode mode)
at RemotingSamples.Sample.Main(String[] args)

Does anyone know what the problem here is?

Thanks and best regards,
Volkan Arslan
Re: Problem with simple remoting example soni_ace NO[at]SPAM hotmail.com
7/30/2003 4:45:41 AM
Hi could u try this ...
get ur code working on the localhost ..
next .. in the client, instead of "tcp://localhost:8085/SayHello" ur
replace "localhost" with the ip of the system. Compile client again ..
as done before ...
copy the client folder to the remote machine and try it again ..
i'm sure u must ve done this .. just try again adn let me know .. just
Re: Problem with simple remoting example Volkan Arslan
7/31/2003 8:38:30 AM
Hi Soni,

thanks for your help. I actually did what you suggested, but still wasn't
successful. But then I tried it on a fresly installed machine with NET 1.1
and now it worked. So I don't know exactly what the problem was.

Anyway, thank you very much for your help.

Best regards,
Volkan Arslan


[quoted text, click to view]
AddThis Social Bookmark Button