WCF Service netTCPbinding

后端 未结 3 479
一生所求
一生所求 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: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

提交回复
热议问题