问题标签 [mvcminiprofiler]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
asp.net-mvc-4 - MVC4 MiniProfiler 结果索引页面错误“MiniProfiler.list 未定义”
尝试加载 miniprofiler 列表时出现错误“MiniProfiler.list is undefined”错误:
/mini-profiler-resources/results-index
javascript miniprofiler 注入没有任何称为“列表”的方法或属性。
显示一个结果跟踪的页面工作正常。
我正在使用 Nuget 安装软件包,删除了 MiniProfiler 的当前版本并安装最新版本:
然后:
找不到其他人有同样的问题,所以一定是我!我在这里遗漏了一些明显的东西吗?我还在我的 web.config 中添加了处理程序,尽管我有runAllManagedModulesForAllRequests="true"
但仍然没有。
c# - Miniprofiler.Current 方法不返回时间
我正在尝试使用MiniProfiler
.
但它返回0 ms
结果。如何进入current time
miniprofiler。
这种方法给了我结果MiniProfiler version 2.1.0.
现在我正在使用MiniProfiler version 3.1.1.139
.
mvc-mini-profiler - 如何防止发布到生产中的迷你分析器资源/结果?
我正在尝试将 MiniProfiler 设置为在我们所有的环境中运行,而不仅仅是在我们的本地机器上运行。据我了解,StackOverflow 在生产环境中运行 MiniProfiler 没有任何问题。当我在 Chrome 中打开我的开发人员工具并转到 StackOverflow 网站上的网络选项卡时,我没有看到以下 URL 的任何帖子:
当我查看我们网站上的网络选项卡时,我确实看到了许多指向此 URL 的帖子。我在 Global.cs 中使用的代码是:
我在这里做错了吗?我唯一能想到的是它没有启动分析会话,但它不会分析用户请求。MiniProfiler UI 没有显示,因此该部分工作正常,但是所有请求仍在发出,RenderIncludes 方法正在将 js 代码加载到 DOM 中。
谢谢!