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
La dernière ligne ne passe pas. Les lignes au dessus s'executent correctement.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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();
D'ou cela pourrait-il venir?
Partager