HighTechTalks DotNet Forums  

Requested Service not found for IPC Channel (No lifetime issue)

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Requested Service not found for IPC Channel (No lifetime issue) in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
rketi@yahoo.com
 
Posts: n/a

Default Requested Service not found for IPC Channel (No lifetime issue) - 12-06-2007 , 04:46 PM






I get RemotingException "Requested Service not found" with following
sequence. It happens almost everytime (95% of times). The sequence is

1. Server opens IPC remoting channel and marshals the object
2. Client opens IPC channel with port name "ClientPort" and connects
to the server object.
3. Client attaches to the event exposed by server.
4. Server fires event. Client receives it. This part works fine as
both client and server has infinite lifetime (I "return null' in
InitializeLifetimeService.)
5. I kill Client process. (Simulating the crash). Because of this the
event handler attached by client is not detached.
6. Client runs again and opens IPC Channel with the same port name
"ClientPort" and connects to the server object and attaches to the
event exposed by server.
7. So now server has 2 event handlers. One from old dead client and
one from new client.
8. Now when Server fires event, server gets 2 remoting exceptions (I
iterate through the delagates and fire events individually)
a. RemotingException "Failed to write to an IPC Port: The pipe is
being closed." for first dead client
b. RemotingException "Requested Service not found" for new alive
client.

My question is why do I get "Requested Service not found" for client
that is still alive. This happens most of the times (95% of times).

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.