如何为Visual Studio使用的IIS Express添加net.tcp协议支持? [英] How to add net.tcp protocol support for IIS Express used by Visual Studio?

查看:98
本文介绍了如何为Visual Studio使用的IIS Express添加net.tcp协议支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio的默认配置在开发方案中托管我的wcf服务.我想添加一个net.tcp端点,但是总是出现错误.

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.

推荐答案

根据常见问题解答,此功能在IIS Express中不可用:

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

以下是FAQ中相关问题的摘录:

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

问:IIS Express是否支持非HTTP协议,例如net.tcp或MSMQ?

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

A:否.IIS Express仅支持HTTP和HTTPS作为其协议.

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

对于TCP绑定,您可能必须创建自己的服务主机(例如,如果仅用于测试或类似服务,则可能在控制台应用程序中).请选择完整 IIS安装(对不起,我已经假设您使用的是Win7),然后在其中部署应用程序.

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.

这篇关于如何为Visual Studio使用的IIS Express添加net.tcp协议支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆