加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

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

发布时间:2020-12-15 21:04:52 所属栏目:asp.Net 来源:网络整理
导读:我有一个MVC3 ASP.NET应用程序.如果我遍历加载的IHttpModules列表,我看到列出了ServiceModel,它是 Windows Communication Foundation HTTP Activation的模块. 我怀疑我不需要这个模块,并考虑删除此模块. 我怎么知道我是否真的需要它? 解决方法 我的第一反应
我有一个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服务.如果你不这样做,你可以简单地删除处理程序.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读