Windows Service and .Net Remoting

I have a Remoting server that hosts 3 object and uses TCP channel. When the server runs as utility the TCP Clients are able to connect and access the methods of these objects BUT when the server runs as windows Service the TCP Clients do not have access to these objects however, the server is still listening on the port opened by TCP channel.

Any suggestions

Thanks



Answer this question

Windows Service and .Net Remoting

  • cgirolami

    Do you have System.Timer in the server

  • Iron_Mala

    No there is no timer in the server. Server uses TCP Server channel for hosting 3 objects: singleton,singlecall and CAO. The application name for all three of them are coming along with port number are coming in from app.config.

    All clients uses tcp client channel for communication.

    Thanks

    Parag


  • Ecrofirt

    Post the exact remoting configuration of the client and server when the server is a service.
  • ozhonetech

    The windows service of yours might need the permission to access network service. Maybe you need to give the service an user account who has the right to access network service.

    I used to meet a problem when the windows service tried to print to a network printer and failed. Then I gave an administrative-level account to this service, printing becomes ok.

    Just check the service property pages for it.

    Chester


  • Windows Service and .Net Remoting