HighTechTalks DotNet Forums  

problem with using IPC and TCP channels

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


Discuss problem with using IPC and TCP channels in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
dr
 
Posts: n/a

Default problem with using IPC and TCP channels - 10-26-2006 , 12:39 PM






I have a service which has both an IPC and TCP remoting channel. A client
can use either to access my service and I talk to the clients via a callback
they pass to me. If I try to have the service talk to another instance of
the service running on a different machine, the callback fails and an
exception is thrown "Unable to case object of type
'System.Runtime.Remoting.Identity' to type
'System.Runtime.Remoting.ServerIdentity'. Any ideas on why this doesn't work
across machines?
If I take out the one line of code where I register the IPC channel,
everything works fine.

Reply With Quote
  #2  
Old   
SenthilVel
 
Posts: n/a

Default Re: problem with using IPC and TCP channels - 10-27-2006 , 01:08 AM






hi
the name space System.Runtime.Remoting.Channels.Ipc can be used for client
and services which are runnning in the same machine.

this can be ONLY used when the 2 parts --client and server r in the same
machine....

so probably ur error is due to the fact that u used IPC and u are trying to
use the server remotable component from a different machine.

Thanks
Senthil
http://dotnetcrunch.blogspot.com

"dr" <dr (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have a service which has both an IPC and TCP remoting channel. A client
can use either to access my service and I talk to the clients via a
callback
they pass to me. If I try to have the service talk to another instance of
the service running on a different machine, the callback fails and an
exception is thrown "Unable to case object of type
'System.Runtime.Remoting.Identity' to type
'System.Runtime.Remoting.ServerIdentity'. Any ideas on why this doesn't
work
across machines?
If I take out the one line of code where I register the IPC channel,
everything works fine.



Reply With Quote
  #3  
Old   
dr
 
Posts: n/a

Default Re: problem with using IPC and TCP channels - 10-27-2006 , 06:14 PM



I guess I wasn't clear - I'm using TCP between machines and IPC to talk to
clients on the local machine. I actually found a workaround which makes no
sense - if I set the TCP channel priority higher than the IPC channel, the
TCP callbacks start working - it almost appears to be a bug in the .NET
framework since it doesn't make any sense to me why it would fix the problem.

"SenthilVel" wrote:

Quote:
hi
the name space System.Runtime.Remoting.Channels.Ipc can be used for client
and services which are runnning in the same machine.

this can be ONLY used when the 2 parts --client and server r in the same
machine....

so probably ur error is due to the fact that u used IPC and u are trying to
use the server remotable component from a different machine.

Thanks
Senthil
http://dotnetcrunch.blogspot.com

"dr" <dr (AT) discussions (DOT) microsoft.com> wrote in message
news:4005C3B8-005F-4F77-B038-52E1CEBB5A1C (AT) microsoft (DOT) com...
I have a service which has both an IPC and TCP remoting channel. A client
can use either to access my service and I talk to the clients via a
callback
they pass to me. If I try to have the service talk to another instance of
the service running on a different machine, the callback fails and an
exception is thrown "Unable to case object of type
'System.Runtime.Remoting.Identity' to type
'System.Runtime.Remoting.ServerIdentity'. Any ideas on why this doesn't
work
across machines?
If I take out the one line of code where I register the IPC channel,
everything works fine.




Reply With Quote
  #4  
Old   
SenthilVel
 
Posts: n/a

Default Re: problem with using IPC and TCP channels - 10-28-2006 , 04:02 AM



oh ok.....But what do u think the bug may be ?
The priority betweeen TCP and IPC ?

,,,,
Senthil
http://dotnetcrunch.blogspot.com
"dr" <dr (AT) discussions (DOT) microsoft.com> wrote

Quote:
I guess I wasn't clear - I'm using TCP between machines and IPC to talk to
clients on the local machine. I actually found a workaround which makes
no
sense - if I set the TCP channel priority higher than the IPC channel, the
TCP callbacks start working - it almost appears to be a bug in the .NET
framework since it doesn't make any sense to me why it would fix the
problem.

"SenthilVel" wrote:

hi
the name space System.Runtime.Remoting.Channels.Ipc can be used for
client
and services which are runnning in the same machine.

this can be ONLY used when the 2 parts --client and server r in the same
machine....

so probably ur error is due to the fact that u used IPC and u are trying
to
use the server remotable component from a different machine.

Thanks
Senthil
http://dotnetcrunch.blogspot.com

"dr" <dr (AT) discussions (DOT) microsoft.com> wrote in message
news:4005C3B8-005F-4F77-B038-52E1CEBB5A1C (AT) microsoft (DOT) com...
I have a service which has both an IPC and TCP remoting channel. A
client
can use either to access my service and I talk to the clients via a
callback
they pass to me. If I try to have the service talk to another instance
of
the service running on a different machine, the callback fails and an
exception is thrown "Unable to case object of type
'System.Runtime.Remoting.Identity' to type
'System.Runtime.Remoting.ServerIdentity'. Any ideas on why this
doesn't
work
across machines?
If I take out the one line of code where I register the IPC channel,
everything works fine.






Reply With Quote
  #5  
Old   
dr
 
Posts: n/a

Default Re: problem with using IPC and TCP channels - 10-30-2006 , 04:31 PM



I think the bug is the fact that having an IPC channel just sitting there
causes the failure to occur in the TCP channel callback. They should be two
completely isolated things (at least I would assume they would be).

"SenthilVel" wrote:

Quote:
oh ok.....But what do u think the bug may be ?
The priority betweeen TCP and IPC ?

,,,,
Senthil
http://dotnetcrunch.blogspot.com
"dr" <dr (AT) discussions (DOT) microsoft.com> wrote in message
news:EE98B6B6-343E-45DD-9F7E-072647AD365A (AT) microsoft (DOT) com...
I guess I wasn't clear - I'm using TCP between machines and IPC to talk to
clients on the local machine. I actually found a workaround which makes
no
sense - if I set the TCP channel priority higher than the IPC channel, the
TCP callbacks start working - it almost appears to be a bug in the .NET
framework since it doesn't make any sense to me why it would fix the
problem.

"SenthilVel" wrote:

hi
the name space System.Runtime.Remoting.Channels.Ipc can be used for
client
and services which are runnning in the same machine.

this can be ONLY used when the 2 parts --client and server r in the same
machine....

so probably ur error is due to the fact that u used IPC and u are trying
to
use the server remotable component from a different machine.

Thanks
Senthil
http://dotnetcrunch.blogspot.com

"dr" <dr (AT) discussions (DOT) microsoft.com> wrote in message
news:4005C3B8-005F-4F77-B038-52E1CEBB5A1C (AT) microsoft (DOT) com...
I have a service which has both an IPC and TCP remoting channel. A
client
can use either to access my service and I talk to the clients via a
callback
they pass to me. If I try to have the service talk to another instance
of
the service running on a different machine, the callback fails and an
exception is thrown "Unable to case object of type
'System.Runtime.Remoting.Identity' to type
'System.Runtime.Remoting.ServerIdentity'. Any ideas on why this
doesn't
work
across machines?
If I take out the one line of code where I register the IPC channel,
everything works fine.







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.