Remoting server
-
Hi, I have a console remoting server with this in the main method - TcpChannel MyTcpChannel = new TcpChannel(9932); ChannelServices.RegisterChannel(MyTcpChannel); RemotingConfiguration.RegisterWellKnownServiceType(typeof(DataLayer) ,"DataLayer",WellKnownObjectMode.Singleton); Console.WriteLine("Server Activated"); Console.ReadLine(); from my client side i can instantiate objects fine but i would like this server console app to display something as things happen - at the moment it just stops at "Server Activated" and then never says anything again. Is it possible to do this and if so how?? Im new to remoting so please excuse me if this question sounds ignorant or stupid.
-
Hi, I have a console remoting server with this in the main method - TcpChannel MyTcpChannel = new TcpChannel(9932); ChannelServices.RegisterChannel(MyTcpChannel); RemotingConfiguration.RegisterWellKnownServiceType(typeof(DataLayer) ,"DataLayer",WellKnownObjectMode.Singleton); Console.WriteLine("Server Activated"); Console.ReadLine(); from my client side i can instantiate objects fine but i would like this server console app to display something as things happen - at the moment it just stops at "Server Activated" and then never says anything again. Is it possible to do this and if so how?? Im new to remoting so please excuse me if this question sounds ignorant or stupid.
Its easy if what I've understood is what u are trying. All console outputs must be implemented in the romote object, not the server. The remote object lives in the server side, so anytime one of its methods is called from the client side, the console output will show on the host side. Hope this is what u were looking for.