问题描述
我得到的错误MiniProfiler.list是不确定的尝试加载miniprofiler列表时出错:
/迷你探查资源/结果指数
I get the error "MiniProfiler.list is undefined" error when trying to load the miniprofiler list:
/mini-profiler-resources/results-index
JavaScript的miniprofiler内喷射并没有所谓的名单的任何方法或属性。
The javascript miniprofiler injects doesn't have any method or property called "list".
这显示了一种结果跟踪该网页能正常工作。
The page that shows one results trace works fine.
我使用的NuGet安装包,取出MiniProfiler的当前版本,并安装最新的:
I'm using Nuget to install the packages, removed the current version of MiniProfiler and install latest:
Install-Package MiniProfiler
然后:
Then:
Install-Package MiniProfiler.Mvc4
找不到其他任何人有同样的问题,所以它一定是我!我缺少明显的东西吗?我还添加了处理程序在我的web.config虽然我有 runAllManagedModulesForAllRequests =真正的
,但仍然一无所获。
推荐答案
看来,结果索引页从3.0.10版本现在通过(3.1.1.140)目前打破。
It seems that results-index page is currently broken from version 3.0.10 through now (3.1.1.140).
它仍然工作在通过安装了旧版本的安装封装MiniProfiler -Version 2.1
,所以这仍是一个选项,如果有对结果指标比一个更迫切需要在3.x中提供的任何功能。
It still works in the older version installed via Install-Package MiniProfiler -Version 2.1
, so that's still an option if there is a more urgent need for the results index than any features available in 3.x.
通源$ C $ c代表MiniProfiler来看,似乎UI被打破出去版本3.x到一个单独的Git项目和列表模式支持缺失。该JS Miniprofiler对象住在一个名为includes.js UI项目源文件,并根据源$ C $ C初始犯git的,有一个为列表中没有符号。
Looking through the source code for MiniProfiler, it seems that the UI was broken out for version 3.x into a separate git project and support for list mode is missing. The JS Miniprofiler object lives in a source file in the UI project named includes.js, and according to the source code for the initial commit in git, there's no symbol for list.
Miniprofiler/ui/includes.js,initial,行633-953 @ github上
源$ C $ C发出的Miniprofiler / DOTNET结果索引页面尚未自2013年起进行更新,所以也许结果索引页德precated或者只是没有更新。
The source code that emits the results-index page in Miniprofiler/dotnet hasn't been updated since 2013, so perhaps the results-index page is deprecated or just not updated yet.
Miniprofiler/dotnet/StackExchange.Profiling/MiniProfilerHandler.cs,latest,行186-205 @ github上
还有一个悬而未决的问题为3.X在github上这里列出:
There's also an open issue for 3.x listed in github here:
这篇关于MVC4 MiniProfiler结果索引页的错误" MiniProfiler.list是未定义的"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!