WCF Service netTCPbinding

后端 未结 3 458
一生所求
一生所求 2021-01-12 04:26

I want to use netTCPbinding, so I\'ve changed my web config as below. I\'m experiencing this error:

Could not find a base address that matches scheme

相关标签:
3条回答
  • 2021-01-12 04:44

    I cant see section in your config file, can u please please add this

    <netTcpBinding>
    
     <binding name="WindowsSecured">
     <security mode="none"/> 
     </binding> 
    
    </netTcpBinding>
    

    0 讨论(0)
  • 2021-01-12 04:49

    HMm... you've added the base address to your services/host section ok.

    Quick question: are you self-hosting, or hosting in IIS ?? Which version of IIS ??

    IIS5/6 only support HTTP connections - you cannot host a NetTCP in IIS 5/6.

    In IIS7, you have to manually go through a series of steps to enable non-HTTP bindings, but it's possible. See this MSDN article on how to achieve this.

    Self-hosting is the best option - you get all bindings and are in total control of your service being hosted.

    Marc

    0 讨论(0)
  • 2021-01-12 04:56

    Here is a NetTcpBinding basic example from msdn. See if this can help you.

    EDIT:

    And here is a related SO question.

    0 讨论(0)
提交回复
热议问题