How to add net.tcp protocol support for IIS Express used by Visual Studio?

人走茶凉 提交于 2020-06-27 07:29:58

问题


I'm using the default configuration of Visual Studio to host my wcf service in a development scenario. I want to add a net.tcp endpoint, but I always get an error.


回答1:


According to this FAQ, this functionality is not available in IIS Express:

Here's the extract of the relevant question from the FAQ:

Q: Does IIS Express support non-HTTP protocols such as net.tcp or MSMQ?

A: No. IIS Express only supports HTTP and HTTPS as its protocol.

For TCP bindings, you might have to create your own service host (e.g. if it's just for testing or similar, perhaps in a console application). Either that or go with the full IIS install (sorry, I've assumed you're on Win7) and deploy your application there.



来源:https://stackoverflow.com/questions/15838792/how-to-add-net-tcp-protocol-support-for-iis-express-used-by-visual-studio

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