Multiple net.tcp endpoints with different portnumbers on the same web site (IIS7)

不打扰是莪最后的温柔 提交于 2019-12-22 10:04:42

问题


I have multiple services that have to run under one website. Two of the services have a net.tcp endpoint. The addresses are formatted as follows:

net.tcp://backend.ourcompany.com:9080/Product1/2010/09/Service1/Service1.svc

net.tcp://backend.ourcompany.com:9081/Product1/2010/09/Service2/Service2.svc

net.tcp://backend.ourcompany.com:9090/Product2/2010/09/Service2/Service2.svc

All services have their own Web.config. Currently all services have a different base address in their Web.config and a relative endpoint address. Everything worked ok with just the fist service installed, after installing the second I keep getting this error: 'This collection already contains an address with scheme net.tcp. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.'

Since the multipleSiteBindingsEnabled is only for http (why?) I tried getting it to work with the baseAddressPrefixFilters but I don't really understand how that would help me in my case. Is it possible what I'm trying to do here? Otherwise this would be a big fail of IIS, in a self-hosted environment I'm doing the same thing for years. I now want to migrate my existing services to IIS because of the AppFabric monitoring features.

来源:https://stackoverflow.com/questions/3686776/multiple-net-tcp-endpoints-with-different-portnumbers-on-the-same-web-site-iis7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!