asp.net - 我如何知道我的应用程序中是否需要 "WCF HTTP Activation"?

标签 asp.net .net wcf iis-7

我有一个 MVC3 ASP.NET 应用程序。如果我迭代加载的 IHttpModule 列表,我会看到列出了 ServiceModel 这是 Windows Communication Foundation HTTP Activation 的模块。 .

我怀疑我不需要这个模块并考虑删除这个模块。

我怎么知道我是否真的需要它?

最佳答案

我的第一 react 是:尝试一下,看看会发生什么。相反,当您在网络上搜索“安装 WCF HTTP 激活处理程序”(因为您想知道人们想要安装它的目的)时,您会在其中找到类似 here 的解释:

After installing Windows 7 and IIS, when I attempt to browse to a WCF service I get the following error message: HTTP Error 404.3 – Not Found

HTTP Error 404.3 – Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

This error message occurs when “Windows Communication Foundation HTTP Activation” is not explicitly set in the Control Panel.

因此,人们使用处理程序在 IIS 中托管 WCF 服务。如果您不这样做,您可以简单地删除处理程序。

关于asp.net - 我如何知道我的应用程序中是否需要 "WCF HTTP Activation"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17526029/

相关文章:

c# - 我应该在部署机器上安装 asp.net mvc 2 吗?

c# - 如何使用 C# 迭代分层数据并输出层次结构

java - C# WCF AddressHeader 的 Java Apache CXF 等效项是什么?

c# - 以 XML 形式获取 WCF web 服务响应

c# - Azure 服务总线中继 - 启用压缩

php - 设计用户界面时有趣的计算内容

c# - 如何在多个环境中使用 URL 路由?

asp.net - 使用 MSBUILD 和/或 MSDEPLOY (.NET 3.5) 从命令行进行部署

c# - 用于付费订阅的安全网络模块

c# - 如何将系统麦克风音频流传输到连接的设备麦克风音频流