Thread: Remoting in C#
View Single Post
  #2 (permalink)  
Old February 24th, 2009, 05:15 PM
David_0223 David_0223 is offline
Authorized User
 
Join Date: Nov 2006
Location: Valparaiso, IN, USA.
Posts: 93
Thanks: 0
Thanked 1 Time in 1 Post
Default re:Remoting in C#

I see two potential problems in your remote server application (S.CS). When you declare and instantiate the TcpChannel you use a different port than the client application uses.

Code:
TcpChannel c = new TcpChannel(4444);
The second may not be critical but the Type.GetType("zzz,o") function should have as an argument "<namespace>.<class>, <namespace>". I see the class "zzz" but I don't see that you assigned a namespace in the code you posted.

I think the main reason why it rejects your client application connection is the port though.
__________________
What you don\'t know can hurt you!