I am trying to implement .Net Remoting to have Windows Server acting as a server for hosting the object and have some client application to connect to the server when needed to activate and use the object. I am new to both windows services and .Net Remoting so it is a challenge to implement for me. Could you share you expertise with me please. I brushed up a little bit on the Windows Services and .Net Remoting and was able to short test implementation to feel how it works. I was successful at that point. However when I tried to combine Win Service and Remoting I filed to grasp some ideas. Could you help me please.
I want to make Windows Server a server hosting a remote object. This is the code I sued to do that:
TcpChannel tcp = new TcpChannel(8085);
ChannelServices.RegisterChannel(tcp);
RemotingConfiguration.RegisterWellKnownServiceType(
Type.GetType("Object.obj,Object"),"Test",
WellKnownObjectMode.SingleCall);
Do I include this portion of the code in OnStart method? What I tried and win service failed to start indicating that it has no job to do.
Or may be I have to start a separate thread in OnStart method that will include above code.
Any help or suggestions will be appreciated.
Thank you so much
Regards, Dmitry
I want to make Windows Server a server hosting a remote object. This is the code I sued to do that:
TcpChannel tcp = new TcpChannel(8085);
ChannelServices.RegisterChannel(tcp);
RemotingConfiguration.RegisterWellKnownServiceType(
Type.GetType("Object.obj,Object"),"Test",
WellKnownObjectMode.SingleCall);
Do I include this portion of the code in OnStart method? What I tried and win service failed to start indicating that it has no job to do.
Or may be I have to start a separate thread in OnStart method that will include above code.
Any help or suggestions will be appreciated.
Thank you so much
Regards, Dmitry