unable to setup net.tcp bindings for wcf application running on IIS

倾然丶 夕夏残阳落幕 提交于 2019-12-10 11:46:32

问题


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:

I have also activated the Windows Communication Foundation Non-HTTP Activation. NET.TCP services are also running.

Thanks in advance


回答1:


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

OR

use command line - it works for me

C:\Windows\System32\inetsrv>appcmd.exe set site "Default Web Site" -+bindings.[protocol='net.tcp',bindinginformation='808:*']



回答2:


read these 2 and see if they have anything extra than what you are doing right now, so see what you are missing and do that:

http://dotnetmentors.com/hosting-wcf-service-with-nettcpbinding-or-netnamedpipebinding-in-iis.aspx

http://blogs.msdn.com/b/james_osbornes_blog/archive/2010/12/07/hosting-in-iis-using-nettcpbinding.aspx

if these 2 didn't help, than can read this, covers few more points than other 2 links: http://blogs.msdn.com/b/prathul/archive/2011/11/28/hosting-wcf-nettcp-on-iis-was.aspx



来源:https://stackoverflow.com/questions/19092079/unable-to-setup-net-tcp-bindings-for-wcf-application-running-on-iis

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