Installed glimpse attempting to access glimpse.axd and receive 404 error?
Asked Answered
G

6

13

It is a simple as that I installed glimpse following this page. :

http://getglimpse.com/About/QuickStart

I then attempt to navigate to http://myApp/glimpse.axd and receive 404 error not found.

As you can see in the Quickstart there is this statement. :

If you get a "Page not found" when browsing to "/glimpse.axd" check the troubleshooting section in the FAQ.

There is nothing in the FAQ regarding this. I have skimmed this website and getGlimpse.com attempting numerous other configurations and nothing is working. Any one else run into this issue and fix it?

Tried this also. :

Glimpse for MVC3 module not found after NuGet install of Glimpse.MVC3

Graecize answered 2/1, 2013 at 23:6 Comment(1)
> Same problem. Work for me: #9180155Dearr
T
11

Make sure you have the Glimpse module and handler registered in your web.config based on the web server you are using.

  • If you are using a site on IIS6, in IIS7.x classic pipeline mode or Visual Studio Development Server

    <system.web>
        <httpModules>
            <add 
                name="Glimpse" 
                type="Glimpse.Core.Module, Glimpse.Core"
            />
        </httpModules>
        <httpHandlers>
            <add 
                path="glimpse.axd" 
                verb="GET,POST" 
                type="Glimpse.Core.Handler, Glimpse.Core"
            />
       </httpHandlers>
       ...
    

  • And if you are using IIS 7.x in integrated pipeline mode or IIS Express:

    <system.webServer>
        <modules>
            <add 
                name="Glimpse" 
                type="Glimpse.Core.Module, Glimpse.Core" 
                preCondition="integratedMode" 
            />
        </modules>
        <handlers>
            <add 
                name="Glimpse" 
                path="glimpse.axd" 
                verb="GET,POST" 
                type="Glimpse.Core.Handler, Glimpse.Core" 
                preCondition="integratedMode" 
            />
        </handlers>
        ...
    </system.webServer>
    
Transvalue answered 2/1, 2013 at 23:18 Comment(7)
Added that in as I did not have that and still receive a 404.0. Thank you for your response.Graecize
Did you enable glimpse in your web.config file using the <glimpse enabled="true" /> custom configuration section? Also which web server are you using to test this? IIS or IIS Express in Visual Studio? Also make sure that the Glimpse.Core assembly is present in your bin folder. Normally that's all you need to enable Glimpse.Transvalue
Yes, I enabled it in web.config. Using IIS 7.5. Glimpse.Core is in my bin folder. Still unable to access .axd.Graecize
Sorry, I don't have any more clues. This setup has always worked for me. Any chance you could send me a sample project exhibiting the problem?Transvalue
I just got it to work in a standard project. Thank you so much for your time these have all been great suggestions. My issue I think is that I have a solution with about 8 projects in it.......Graecize
I was able to get it to work in both MVC3 and MVC4 standard test projects. I think when it does in install in my multi project solution it doesn't know where to put the files.Graecize
Got it working, my package manager console was hitting the incorrect project. Your answers were dead on leading me to this conclusion.Graecize
M
21

I encountered the same problem and in my case the solution was to add the following code to Application_Start() in the MvcApplication class:

routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
Midinette answered 31/5, 2013 at 9:41 Comment(2)
Bam that's it. But it's enough to let through only Glimpse.axd: routes.IgnoreRoute("Glimpse.axd");Clein
I can confirm this worked for me too, Just make sure that the IgnoreRoute code above is the FIRST route, as we all know the order is very important.Koziara
T
11

Make sure you have the Glimpse module and handler registered in your web.config based on the web server you are using.

  • If you are using a site on IIS6, in IIS7.x classic pipeline mode or Visual Studio Development Server

    <system.web>
        <httpModules>
            <add 
                name="Glimpse" 
                type="Glimpse.Core.Module, Glimpse.Core"
            />
        </httpModules>
        <httpHandlers>
            <add 
                path="glimpse.axd" 
                verb="GET,POST" 
                type="Glimpse.Core.Handler, Glimpse.Core"
            />
       </httpHandlers>
       ...
    

  • And if you are using IIS 7.x in integrated pipeline mode or IIS Express:

    <system.webServer>
        <modules>
            <add 
                name="Glimpse" 
                type="Glimpse.Core.Module, Glimpse.Core" 
                preCondition="integratedMode" 
            />
        </modules>
        <handlers>
            <add 
                name="Glimpse" 
                path="glimpse.axd" 
                verb="GET,POST" 
                type="Glimpse.Core.Handler, Glimpse.Core" 
                preCondition="integratedMode" 
            />
        </handlers>
        ...
    </system.webServer>
    
Transvalue answered 2/1, 2013 at 23:18 Comment(7)
Added that in as I did not have that and still receive a 404.0. Thank you for your response.Graecize
Did you enable glimpse in your web.config file using the <glimpse enabled="true" /> custom configuration section? Also which web server are you using to test this? IIS or IIS Express in Visual Studio? Also make sure that the Glimpse.Core assembly is present in your bin folder. Normally that's all you need to enable Glimpse.Transvalue
Yes, I enabled it in web.config. Using IIS 7.5. Glimpse.Core is in my bin folder. Still unable to access .axd.Graecize
Sorry, I don't have any more clues. This setup has always worked for me. Any chance you could send me a sample project exhibiting the problem?Transvalue
I just got it to work in a standard project. Thank you so much for your time these have all been great suggestions. My issue I think is that I have a solution with about 8 projects in it.......Graecize
I was able to get it to work in both MVC3 and MVC4 standard test projects. I think when it does in install in my multi project solution it doesn't know where to put the files.Graecize
Got it working, my package manager console was hitting the incorrect project. Your answers were dead on leading me to this conclusion.Graecize
S
1

I have had a very similar problem, and none of these options helped me, but I did get it working. This is what I had to do:

I am using MVC 5, so make sure you have read the latest config for glimpse for the version you are using. I should have been using Glimpse.AspNet and not Glimpse.Core

My web config looks like this:

 <handlers>
    ....
    <remove name="Glimpse" />
    <add name="Glimpse" path="glimpse.axd" verb="GET"
         type="Glimpse.AspNet.HttpHandler, Glimpse.AspNet"   
         preCondition="integratedMode" />  
</handlers>
<modules>
    ....
    <remove name="Glimpse" />
    <add name="Glimpse" 
         type="Glimpse.AspNet.HttpModule, Glimpse.AspNet" 
         preCondition="integratedMode"/>    
</modules>

I am using IIS Express, Vs2015 and for some reason my C:\Users\me\Documents\IISExpress\config\applicationhost.config got messed up, and had a special entry for Glimpse.

So I found and removed any entries with Glimpse in them (carefully, you might want to comment them out instead)

<application path="/Glimpse.axd" applicationPool="Clr4IntegratedAppPool">
    <virtualDirectory path="/" physicalPath="\path\to\extra\website" />
</application>

I think this may have happened from a really early version of glimpse been installed, and also something to do with the upgrade to MVC5, but not 100% sure why...

Hope this helps someone else.

Starter answered 6/11, 2015 at 11:47 Comment(0)
D
1

I had a multi-project solution and was installing it from the Package Manager Console. I found that installing it using the following command worked:

 PM> Install-Package -ProjectName <MyProject> Glimpse.MVC4

Of course you need to replace <MyProject> with your own project name.

Dyslogistic answered 18/1, 2017 at 22:21 Comment(0)
C
0

In my case, the web app is not deployed in root, so the url is:

http://localhost:54026/MyApp/glimpse.axd

Very obvious, but I'll leave this answer as a reminder.

Cardamom answered 17/4, 2016 at 15:33 Comment(0)
S
0

Install Glimpse.AspNet and it will fix the issue for you and also modify the web.config by adding the handler and module.

Somebody answered 8/4, 2021 at 18:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.