在IIS7中启用net.tcp [英] Enabling net.tcp in IIS7

查看:383
本文介绍了在IIS7中启用net.tcp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使 IIS 处理 net.tcp 连接?

推荐答案

您需要将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.

如果要配置绑定,请右键单击您的网站,然后转到编辑绑定...".默认的net.tcp绑定是808:*.

If you want to configure bindings, right-click on your website and go to 'Edit Bindings...'. The default net.tcp binding is 808:*.

如果要在net.tcp之后使用IIS托管的WCF服务,则可能还需要检查是否已激活所需的Windows功能.转到Windows功能,然后检查是否已激活"Windows Communication Foundation非HTTP激活"(位于"Microsoft .NET Framework 3.5.1"下).

If you want to use WCF services hosted by IIS behind net.tcp, you may also want to check whether you have activated the required Windows Features. Go to your Windows Features and check you have activated 'Windows Communication Foundation Non-HTTP Activation' (found under 'Microsoft .NET Framework 3.5.1').

激活此功能后,您将获得一些额外的Windows服务.如果仍然无法正常运行,请检查名为'Net.Tcp Listener Adapter'的Windows服务是否正在运行(应该自动启动,但有时无法启动,这是我检查的第一个地方)我的net.tcp服务停止工作了.

When you activate this feature, you will get some extra Windows Services. If it still doesn't work, check that the Windows Service named 'Net.Tcp Listener Adapter' is running (should start automatically but sometimes it doesn't and this is the first place I check when one of my net.tcp services stops working).

这篇关于在IIS7中启用net.tcp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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