Groups | Blog | Home
all groups > dotnet remoting > may 2004 >

dotnet remoting : unregistering?



delphiconsultingguy NO[at]SPAM yahoo.com
5/25/2004 2:27:42 PM
Hi all,

I have: a classLibrary with a remotable object in it, a windows Server
app that registers the remotable object as a wellknown service type,
and a windows client app that registers the same remotable as a
wellknown client type.

The first thing I did was run the client without running the server
and I was of course unable to connect to it to complete the remotable
object method call I was making to the remotable object.

Next, I started the server, then ran the client once again and this
time I was able to connect and get the desired results.

Now I kill the server app and then run the client yet again. To my
surprise, the client was still able to get the remotable results. I
expected the server app to more or less dictate the lifetime of the
remotable object.

Could someone please explain how the client is still able to get
results even when the server app is not running?

thanks,
delphiconsultingguy NO[at]SPAM yahoo.com
5/26/2004 7:40:38 AM
Well Sean (me being facetious to myself),

Perhaps you should move the RegisterWellKnownClientType command
"above" the Application.Run command in Main()...

???????-???
6/8/2004 12:23:54 PM
UNLOAD CURRENT APPDOMAIN

AND


CREATE A NEW APPDOMAIN TO REGISTER CLASS


"Sean" <delphiconsultingguy@yahoo.com> ????
news:c9b4f122.0405251327.c5b78@posting.google.com...
[quoted text, click to view]

AddThis Social Bookmark Button