我网站上的迷你剖析器已经停止工作了。在Chrome控制台中,我在以下方面出现了一个500错误:
/mini-profiler-resources/includes.js?v=4.0.0.0错误是:
'/‘应用程序中的服务器错误。 System.Web.Routing.UrlRoutingModule不实现IHttpHandlerFactory或IHttpHandler。 描述:在执行当前web请求时发生了未处理的异常。请查看堆栈跟踪以获得有关错误的更多信息,以及它起源于代码的位置。
我的web.config文件有以下相关行:
<system.webServer>
<handlers>
<add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
</handlers>
<modules>
<add name="DynamicURLRewrite" type="C3.Code.Controls.Application.Rewriting.URLRewriter" />
<remove name="TelemetryCorrelationHttpModule" />
<add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler" />
<remove name="ApplicationInsightsWebTracking" />
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
</modules>发布于 2017-10-11 10:40:34
请添加以下内容
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer> 去web.config看看是否有帮助?如果这不起作用,那么检查是否能够使用localhost访问这些文件
http://127.0.0.1:<port>/mini-profiler-resources/includes.js?v=4.0.0.0如果没有工作,请卸载和重新安装MiniProfiler也是一次尝试。有时重新安装会产生奇迹。
https://stackoverflow.com/questions/46523807
复制相似问题