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服务.如果你不这样做,你可以简单地删除处理程序.

dawei

【声明】:唐山站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。