locked
cannot start listener RRS feed

  • Question

  • Dear all,

    I have below code but it does not start listener on port 7001 without any exception. public DAL_Listener dal_listener=new DAL_Listener(); Do you know why?

    public class DAL_Listener
        {
            private System.Runtime.Remoting.Channels.Tcp.TcpChannel tcpChannel;

            public DAL_Listener()
            {
                try
                {
                    tcpChannel = new TcpChannel(StoreServer.VO.Common.PropertiesVO.KDS_IPPORT);
                    ChannelServices.RegisterChannel(tcpChannel, false);

                    // === Singlecalls (inherit from RMT_BaseManager_SingleCall) =====================================================

                    RemotingConfiguration.RegisterWellKnownServiceType(typeof(Messages.RMT_KDS),          // completed
                        "RMT_KDS", WellKnownObjectMode.SingleCall);

                  
                    // ===============================================================================================================     
                }
                catch (RemotingException ex)
                {
                    ServerUtil.writeToLog(ex);
                }
            }

    Monday, July 30, 2012 12:33 AM

Answers

All replies