Groups | Blog | Home
all groups > dotnet remoting > august 2003 >

dotnet remoting : Running a listener console app outside of VS.Net


STom
8/8/2003 1:17:29 PM
I have a strange incident happening when I'm doing development for .Net
remoting.

To implement the listener, I have a console project that just calls
RemotingConfiguration.Configure and then GetRegisteredWellKnownServiceTypes.
I then do a Console.Writeline and the window just sits there.

Then, I have a client app (in the same vs.net solution) that gets a
reference to the remote object and calls a function in the business object.

Everything works ok if I first start the listener app (while within VS.Net)
and then I start my client app from within vs.net.

However, if I try to run the listener.exe via command line, when I run my
client app, I can still get a reference to the remote object, but when I try
to call any of the remote object functions, the app hangs.

Is there a reason why I cannot just run the listener from the command line?

Thanks.

STom

FM
8/9/2003 1:37:41 PM
It sounds like the server is not registering any types.
Make sure the configuration file for the server is in the application
directory.

Francisco




[quoted text, click to view]

AddThis Social Bookmark Button