[C#][FW 2.0] Comment utiliser le .NET Remoting ?
Bonjour,
J'utilise le .NET Remoting pour une application client/serveur.
L'application tourne très bien en local (forcement:p) mais à distance c'est tout autre chose.
Après avoir correctement configurés les routeurs, le client n'arrive toujours pas à se connecter
Voici le code du client pour se connecter au serveur
Code:
1 2 3 4 5 6 7 8 9
|
TcpChannel channel = new TcpChannel();
ChannelServices.RegisterChannel(channel, true);
this.CDD.remoteOperation = (RemotingInterfaces.IRemoteOperation)Activator.GetObject(
typeof(RemotingInterfaces.IRemoteOperation),
this.CDD.adresseServeur);
this.CDD.remoteOperation.InitializeRemoteOperation(); |
La dernière ligne ne passe pas. Les lignes au dessus s'executent correctement.
D'ou cela pourrait-il venir?