因此,我正在尝试使用MiniProfiler (https://github.com/MiniProfiler/dotnet)为WebForms网站。我所做的是:
但MiniProfiler仍然不起作用。简单的故障排除显示(在Chrome工具中)在我希望看到的MiniProfiler页面上,我看到
http://localhost/mycoolsite/mini-profiler-resources/results 404.0 -找不到
更多信息:我使用.Net FW 4.5.1、IIS8和互选模式(app池)
有什么对我有用的想法吗?
发布于 2017-08-16 07:36:13
我已经(非常!)最近在博客上提到了这一点,特别是让MiniProfiler在WebForms/MVC混合应用程序中工作的过程。
根据您所执行的步骤,您似乎遗漏了(与我所得到的相比):
<%= StackExchange.Profiling.ClientTimingHelper.InitScript %>尽管如此,即使没有这一行,我仍然看到服务器端的时间安排和MiniProfiler UI,因此我怀疑您的web.config条目是/不正确的。
检查以确保您已将其放入configuration > system.webServer > web.config中的handlers中。
<add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />还有一些其他的事情您也可以检查:
web.config的子文件夹中,还是在其中添加了handlers条目( 操作者 )的文件夹中?https://stackoverflow.com/questions/40179685
复制相似问题