Nhí*_*Báo 6 asp.net iis-7 webforms mvc-mini-profiler
我正在使用MiniProfiler来配置我的ASP.NET 4 Webform应用程序.在localhost它工作正常,但当我部署到IIS7时,我收到以下错误:
System.Web.Routing.UrlRoutingModule does not implement IHttpHandlerFactory or IHttpHandler
Run Code Online (Sandbox Code Playgroud)
这是给我错误的web.config行
<system.webServer>
<handlers>
<add name="MiniProfiler" path="mini-profiler-resources" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
</handlers>
Run Code Online (Sandbox Code Playgroud)
你知道在这种情况下我该怎么办?
最后,我最终使用了以下配置。这可能有点矫枉过正,一般不推荐,但我解决了我的问题
<module runAllManagedModulesForAllRequests="true"/>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2136 次 |
| 最近记录: |