gpt4 book ai didi

web-config - StackExchange MiniProfiler UrlRoutingModules 没有实现 IHttpHandlerFactory

转载 作者:行者123 更新时间:2023-12-04 15:51:57 58 4
gpt4 key购买 nike

我网站上的 Miniprofiler 已停止工作。在 Chrome 控制台中,我收到 500 错误:

/mini-profiler-resources/includes.js?v=4.0.0.0

错误是:

Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.



我的 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>

最佳答案

请在下方添加

  <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。有时重新安装会产生奇迹

关于web-config - StackExchange MiniProfiler UrlRoutingModules 没有实现 IHttpHandlerFactory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46523807/

58 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com