asp.net – 我怎么知道我的应用程序中是否需要“WCF HTTP激活”?

我有一个MVC3 ASP.NET应用程序.如果我遍历加载的IHttpModules列表,我看到列出了ServiceModel,它是 Windows Communication Foundation HTTP Activation的模块.

我怀疑我不需要这个模块,并考虑删除此模块.

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

解决方法

我的第一反应是:尝试一下,看看会发生什么.反过来,当你在网上搜索“安装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服务.如果你不这样做,你可以简单地删除处理程序.

相关文章

这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识...
Some samples are below for ASP.Net web form controls:(fr...
问题描述: 对于未定义为 System.String 的列,唯一有效的值...
最近用到了CalendarExtender,结果不知道为什么发生了错位,...
ASP.NET 2.0 page lifecyle ASP.NET 2.0 event sequence cha...