Pager resource not found


When I view the Elmah tab in Glimpse, I am seeing a lot of these exceptions:

System.InvalidOperationException: Invalid resource identity: Pager>
at Glimpse.Elmah.Responder.PagerHandler.ProcessRequest(HttpContextBase contextBase)
at Glimpse.Core.Handler.ProcessRequest(HttpContextBase context)
at Glimpse.Core.Handler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

And the pager in that tab doesn't seem to work. I don't see a Pager.js file in my project. Is the Elmah 4 Glimpse NuGet package supposed to put that file somewhere?

My _Layout.cshtml contains the following in the head:

<script src="@Url.Content("~/Glimpse.axd?r=Pager&resource=Pager")>" type="text/javascript"></script>

Here's my packages.config file:

<package id="jQuery" version="1.5.1" />
<package id="jQuery.vsdoc" version="1.5.1" />
<package id="jQuery.Validation" version="1.8.0" />
<package id="jQuery.UI.Combined" version="1.8.11" />
<package id="EntityFramework" version="4.1.10331.0" />
<package id="Modernizr" version="1.7" />
<package id="elmah.corelibrary" version="1.2" />
<package id="elmah" version="" />
<package id="elmah.sqlserver" version="1.2" />
<package id="Glimpse" version="0.84" />
<package id="Glimpse.Mvc3" version="0.84" />
<package id="Newtonsoft.Json" version="4.0.2" />
<package id="Glimpse.Elmah" version="0.9.5" />
<package id="T4MVC" version="2.6.59" />
<package id="MiniProfiler" version="1.6" />


stevenlauwers22 wrote Jul 27, 2011 at 1:07 PM


I've just created a new empty ASP.NET MVC 3 application with the Razor view engine.
I also got some of the packages from NuGet including the Glimpse.Elmah.Sample package which gives me some pages to test the Glimpse.Elmah plugin.
I don't get any error whatsoever. Do you get this error with every request? Or does it just happen when making ajax calls?

It's normal you don't see the Pager.js file in your project, that file is embedded within the Glimpse.Elmah assembly.
If you browse to http://[your_site]/Glimpse.axd?r=Pager&resource=Pager you should get the Pager javascript code.
It would be of great help if you could send me a demo app that has the error.

jeffm wrote Jul 30, 2011 at 9:28 PM

Well, the error went away when I realized I had an errant ">" in that line where I included the script in my layout file (see above in my original post), and the pager now works in the Elmah tab. Sorry for wasting your time on that, Steven.

However, if I hit the Pop Out button to open Glimpse in a new window, the pager no longer works in the Elmah tab. It works again if I append "r=Pager" to the window's address bar. Pretty minor issue.