我有一个 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/