WCF netTcpBinding hosted on IIS7.5 Stops Working

为君一笑 提交于 2019-12-03 16:27:19

OK, finally solved it. I had enabled net.tcp protocol at the site level, but it was not enabled at the application level. I guess it must have been before, and I think I might of created a new application after changing the project name earlier and obviously forgot to set the protocol on the application - doh!

So the final checklist for hosting a WCF net.tcp service on IIS is:

  1. Ensure the WCF Non-HTTP Activation service is installed
  2. Ensure the Net.Tcp Listener Service and Net.Tcp Port Sharing Service are both running
  3. Add net.tcp to the enabled protocols for the site and the application (to access the Advanced Settings option from IIS Manager you must have an http binding present)
  4. Run servicemodelreg.exe -ia to register WCF elements with IIS
  5. Run aspnet_regiis.exe -i to ensure .NET is setup correctly with IIS
  6. Add net.tcp binding to the site

Have you checked that port sharing is enabled?

see http://msdn.microsoft.com/en-us/library/ms734772.aspx

EDIT - For WAS there is another service needed:

besides the NetTcpPortSharing the service NetTcpActivator is needed too...

see http://msdn.microsoft.com/en-us/magazine/cc163357.aspx

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