所以我正在尝试将 MiniProfiler ( https://github.com/MiniProfiler/dotnet ) 用于 WebForms 网站。我所做的是:
- 使用 nuget 安装包
- 在 Global.asax.cs 中添加 MiniProfiler 初始化(Begin_request 和 End_request 事件)
添加 <%= StackExchange.Profiling.MiniProfiler.RenderIncludes() %> 语句
设置在 web.comfig
而且 MiniProfiler 仍然不起作用。简单的故障排除表明(在 Chrome 开发工具中)我希望在该页面上看到 MiniProfiler,我看到了
http://localhost/mycoolsite/mini-profiler-resources/results 404.0 - 未找到
更多信息:我使用 .Net FW 4.5.1、IIS8 和 Intergated Mode(应用程序池)
有什么想法对我有用吗?