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

asp.net – MiniProfiler出错:System.Web.Routing.UrlRoutingMo

发布时间:2020-12-16 03:44:52 所属栏目:asp.Net 来源:网络整理
导读:我正在使用MiniProfiler来配置我的ASP.NET 4 Webform应用程序.在localhost它工作正常,但当我部署到IIS7时,我收到以下错误: System.Web.Routing.UrlRoutingModule does not implement IHttpHandlerFactory or IHttpHandler 这是给我错误的web.config行 syste
我正在使用MiniProfiler来配置我的ASP.NET 4 Webform应用程序.在localhost它工作正常,但当我部署到IIS7时,我收到以下错误:

System.Web.Routing.UrlRoutingModule does not implement IHttpHandlerFactory or IHttpHandler

这是给我错误的web.config行

<system.webServer>
<handlers>
  <add name="MiniProfiler" path="mini-profiler-resources" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
</handlers>

你知道在这种情况下我该怎么办?

解决方法

最后,我最终使用了以下配置.这可能是矫枉过正,一般不推荐,但我解决了我的问题

<module runAllManagedModulesForAllRequests="true"/>

(编辑:李大同)

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

    推荐文章
      热点阅读