locked
Requested Service not found RRS feed

  • Question

  • Dear all,

    I have the call to windows service but find that it prompted below error: Do you know how to solve??

    //-------------------------------------------------------------------------

    {System.Runtime.Remoting.RemotingException: Requested Service not found

    Server stack trace:
       at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)

    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at KDS.DAL.Messages.RMT_KDS.send2KDSItems(TransSummaryVO trans)
       at StoreServer.DAL.SendToKDS.COM_MessageSender.send2KDSItems(TransSummaryVO items) in C:\vs2010\SingleStore_Restaurant\StoreServer\StoreServer.DAL\SendToKDS\COM_MessageSender.cs:line 30}

    • Moved by Bob Shen Monday, August 27, 2012 10:17 AM (From:Visual C# General)
    Friday, August 24, 2012 5:02 AM

Answers

  • BinaryServerFormatterSinkProvider serverProv =
           new BinaryServerFormatterSinkProvider();
                        serverProv.TypeFilterLevel = TypeFilterLevel.Full;
                        RemotingConfiguration.CustomErrorsMode = CustomErrorsModes.Off;

                    serverProv.TypeFilterLevel = TypeFilterLevel.Full;
                        IDictionary propBag = new Hashtable();
                        bool isSecure = false;
                        propBag["port"] = StoreServer.VO.Common.PropertiesVO.KDS_IPPORT;
                        propBag["typeFilterLevel"] = TypeFilterLevel.Full;
                        propBag["name"] = "UniqueChannelName";  //right here raymond!!

                        tcpChannel = new TcpChannel(propBag, null, serverProv);
                        ChannelServices.RegisterChannel(tcpChannel, isSecure);

    • Marked as answer by Raymond Chiu Thursday, August 30, 2012 8:45 AM
    Thursday, August 30, 2012 8:45 AM

All replies

  • Dear all,

    I find out that there is error in starting windows service.

    The channel 'tcp' is already registered.

    Do you know how to solve??

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

    Friday, August 24, 2012 7:34 AM
  • Before several days, it works. But don't know now it does not work. Is it related to windows update??

    Sunday, August 26, 2012 1:58 AM
  • Hi Raymond,

    Thank you for visiting the MSDN forum. I’m afraid that it is not the correct forum about this issue. I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks for your understanding.


    Bob Shen [MSFT]
    MSDN Community Support | Feedback to us

    Monday, August 27, 2012 10:17 AM
  • Using VC#? Any other technologies?

    Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)

    Wednesday, August 29, 2012 7:09 AM
  • BinaryServerFormatterSinkProvider serverProv =
           new BinaryServerFormatterSinkProvider();
                        serverProv.TypeFilterLevel = TypeFilterLevel.Full;
                        RemotingConfiguration.CustomErrorsMode = CustomErrorsModes.Off;

                    serverProv.TypeFilterLevel = TypeFilterLevel.Full;
                        IDictionary propBag = new Hashtable();
                        bool isSecure = false;
                        propBag["port"] = StoreServer.VO.Common.PropertiesVO.KDS_IPPORT;
                        propBag["typeFilterLevel"] = TypeFilterLevel.Full;
                        propBag["name"] = "UniqueChannelName";  //right here raymond!!

                        tcpChannel = new TcpChannel(propBag, null, serverProv);
                        ChannelServices.RegisterChannel(tcpChannel, isSecure);

    • Marked as answer by Raymond Chiu Thursday, August 30, 2012 8:45 AM
    Thursday, August 30, 2012 8:45 AM