通过 tcp.net 运行的 WCF 服务是否需要 IIS

发布于 2024-09-06 01:57:01 字数 182 浏览 5 评论 0 原文

我正在尝试在远程服务器 (Win 2008 R2) 上部署使用 netTcpBinding(以及用于元数据的 mexTcpBinding)的 WCF 服务,而不安装 IIS。

问题是,我所做的一切都告诉我我需要在远程机器上安装各种 IIS 组件。
真的是这样吗?在我看来,使用 tcp.net 连接,没有 IIS 应该没问题。

I'm trying to deploy a WCF service that uses a netTcpBinding (and a mexTcpBinding for metadata) on a remote server (Win 2008 R2) without installing IIS.

Trouble is, everything I'm trying is telling me I need various IIS components installed on the remote box.
Is that really the case? It seems to me that, with a tcp.net connection, I should be fine without IIS.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

多彩岁月 2024-09-13 01:57:01

您不需要 IIS,这里有一篇名为“如何:在 a 中托管 WCF”的 MSDN 文章Windows Service using TCP

看起来相当详细且易于理解。

You don't need IIS, here's an MSDN article called How to: Host WCF in a Windows Service Using TCP

It seems to be fairly detailed and easy to follow.

屋顶上的小猫咪 2024-09-13 01:57:01

一般来说,WCF 服务不需要使用 IIS。任何 WCF 服务都可以自托管。

In general, it is not necessary to use IIS for a WCF service. Any WCF service can be self-hosted.

铜锣湾横着走 2024-09-13 01:57:01

WCF 服务需要托管在某处。如果您不想使用 IIS,则需要编写 主机应用程序,可以是控制台或 Windows NT 服务应用程序。如果您选择在 IIS 中托管服务,从 IIS 7 开始,您可以使用 非 HTTP 绑定

A WCF service needs to be hosted somewhere. If you don't want to use IIS you need to write a host application which could be console or a Windows NT service application. If you choose to host your service in IIS, starting from IIS 7 you could use non HTTP bindings.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文