Can't Access Net TCP service From WCF Test Client

前端 未结 3 490
长发绾君心
长发绾君心 2021-01-23 05:31

I\'m trying to run two WCF services from within IIS one is a web service and one is a Net TCP Binding Service.

Here is a simulcrum of my Web.config (I\'ve anonymized the

3条回答
  •  庸人自扰
    2021-01-23 05:59

    The net.tcp and HTTP bindings must be set on different ports on IIS. It can be tested with the same port or different. It will crash in the first case. Also, you can use whatever port numbers you want. In this case, the TCP port can be changed to 8524. It's just that you cannot use two separate protocols on the same port. On the other hand, the base addresses make sense only for self-hosted services. Here the base address is determined by the URL from IIS.

提交回复
热议问题