Glimpse installed, configured, and enabled, but not showing up
I just installed Glimpse.Mvc3 from NuGet. The package enabled trace and glimpse in my web.config
. I can successfully get to localhost/.../Glimpse/Config
(so no 404) and it reports that my IP is 127.0.0.1
and matches the allowed list. Clicking the On button shows my glimpseState = On
(and I verified that the cookie is set). But when I go back and refresh my 开发者_开发百科project, I see nothing new. Is there something else I need to be doing?
- GlimpseMvc3.0.82 from NuGet (Glimpse.Mvc3.dll reports v0.80 and Glimpse.Core.dll reports v0.83)
- Windows 7 SP1
- IIS 7.5
- .NET 4.0
- Visual Studio 2010 Professional
- MVC3 project with razor view engine
- Project is set to use local IIS in a virtual directory
My end goal here is to figure out why my site is a little sluggish, taking at least a full second every page. In webforms days, I would have otherwise just set Page.Trace=True
and gotten a nice timestamped log, but such is not an option in MVC. Glimpse seems like it will fill that role and more.
Edit: I just opened my javascript error console and see that it is having issues loading localhost/.../Glimpse/glimpseClient.js
and when I try to go there directly, I instantly get a very broken link. By that I mean it's not a 404, it acts like the server doesn't exist at all (a browser-specific page). Swapping "glimpseClient.js"
for "Config"
brings up the proper page, so the server address seems fine.
Edit2: I see an open issue on the project's github that sounds similar. Looking at the HTML source of my site, I see a bunch of glimpse code added at the bottom. glimpsePath is properly set to my virtual directory. My web.config
already had runAllManagedModulesForAllRequests="true"
set.
I'm one of the developers on glimpse and this issue is known and has just been resolved... please see http://blog.getglimpse.com/2011/06/21/404-errors-fixed-goodbye-glimpseconfig-hello-glimpse-axd/.
This is a known issue for a small percentage of users and if you read the post it goes pretty indepth about how and why this occurred. The fix will be in release 0.83+ which should be coming out within the week.
Sorry about any inconvenience.
When you go back to your page there should be a slightly transparent icon of an eye on the lower right corner. Click on the icon to bring up glimpse
In my situation, it looked like the glimpse bar was not showing up at all, but I located it under my bottom floating footer.
I added .glimpse-nowrap {bottom:52px;}
to a style tag in my _Layout.cshtml file, and was able to see and use the glimpse bar effectively.
精彩评论