无法为在IIS上运行的wcf应用程序设置net.tcp绑定 [英] unable to setup net.tcp bindings for wcf application running on IIS
问题描述
我正在尝试为部署在 WCF
应用程序设置 NET.TCP
绑定> IIS 。我已经将net.tcp添加到应用程序的启用协议
,但是当我尝试添加net.tcp绑定时,它会抛出如下所示的错误:
I am trying to set up NET.TCP
bindings for a WCF
application deployed on IIS
. I have already added net.tcp to Enabled Protocols
of application, but when I am trying to add net.tcp binding, its throwing the error shown below:
我还激活了 Windows Communication Foundation非HTTP激活
。 NET.TCP服务也在运行。
I have also activated the Windows Communication Foundation Non-HTTP Activation
. NET.TCP services are also running.
提前致谢
推荐答案
您需要将net.tcp添加到站点的已启用协议中。转到IIS管理器,右键单击您的网站,转到管理网站或管理应用程序,然后转到高级设置...。在那里你看到'启用协议'。它可能会说http。将其更改为http,net.tcp
You need to add net.tcp to the enabled protocols of your site. Go to IIS Manager, right-click on your website, go to 'Manage Web Site' or 'Manage Application', then to 'Advanced Settings...'. There you see 'Enabled Protocols'. It probably says http. Change it to http,net.tcp
或
使用命令行 - 它适用于我
use command line - it works for me
C:\Windows\System32\inetsrv>appcmd.exe set site "Default Web Site" -+bindings.[protocol='net.tcp',bindinginformation='808:*']
这篇关于无法为在IIS上运行的wcf应用程序设置net.tcp绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!