简体   繁体   English

在iis7中托管net.tcp wcf服务

[英]Hosting net.tcp wcf service in iis7

I have created a class library project to create WCF service for net.tcp binding, which contains datacontract, service contract and service implementation class, I have also added web.config file and a .svc file. 我创建了一个类库项目来为net.tcp绑定创建WCF服务,其中包含数据合同,服务合同和服务实现类,我还添加了web.config文件和.svc文件。 After this i went ti iis7 to create an application under default website. 之后,我去iis7在默认网站下创建一个应用程序。 I added binding to support net.tcp. 我添加了绑定以支持net.tcp。 But site is not showing option to browse with net.tcp binding. 但是站点未显示使用net.tcp绑定进行浏览的选项。 See below pic. 见下图。 在此处输入图片说明

I have checked WCF Non-HTTP Activation. 我已经检查了WCF非HTTP激活。

在此处输入图片说明

Services related to net.tcp are also running. 与net.tcp相关的服务也正在运行。 在此处输入图片说明

Please help. 请帮忙。

But site is not showing option to browse with net.tcp binding 但是站点未显示使用net.tcp绑定进行浏览的选项

It is not showing up because net.tcp binding cannot be consumed from a web browser. 由于无法从Web浏览器使用net.tcp绑定,因此未显示。 However, this doesn't mean that you cannot consume it from a client application. 但是,这并不意味着您不能从客户端应用程序使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM