MVC4 MiniProfiler results-index page errors "MiniProfiler.list is undefined"
Asked Answered
P

1

11

I get the error "MiniProfiler.list is undefined" error when trying to load the miniprofiler list:
/mini-profiler-resources/results-index

The javascript miniprofiler injects doesn't have any method or property called "list".

The page that shows one results trace works fine.

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

Can't find anyone else having same problem so it must be me! Am I missing something obvious here? I also added the handlers in my web.config although I have runAllManagedModulesForAllRequests="true" but still nothing.

Phaih answered 15/7, 2014 at 9:36 Comment(1)
We're seeing it too... :(Lepidus
G
10

It seems that results-index page is currently broken from version 3.0.10 through now (3.1.1.140).

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.

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, Lines 633-953 @ github

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, Lines 186-205 @ github

There's also an open issue for 3.x listed in github here:

Can not view results-index - Miniprofiler.list is undefined @ github

Glassco answered 10/9, 2014 at 22:29 Comment(1)
latest release of v3.2.0 resolves this issue. github.com/MiniProfiler/dotnet/releases/tag/v3.2.0Nuptial

© 2022 - 2024 — McMap. All rights reserved.