Search code examples
azureglimpse

Glimpse works locally but not on Azure


I'm running the latest version of Glimpse and running the site locally shows the Glimpse bar bottom right but not when hosted on Azure.

I've done everything in this post which says to add the following to the web.config:

<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
  <inspectors>
    <ignoredTypes>
      <add type="Glimpse.Mvc.Inspector.DependencyInjectionInspector, Glimpse.Mvc4"/>
    </ignoredTypes>
  </inspectors>
<runtimePolicies>
  <ignoredTypes>
    <add type="Glimpse.AspNet.Policy.LocalPolicy, Glimpse.AspNet"/>
  </ignoredTypes>
</runtimePolicies>
</glimpse>

The official docs don't mention the inspectors node but it doesn't work when I try without it either.

I tried adding:

<logging level="Trace" />

but can't see where that would be output.

When I go to glimpse.axd it correctly hides the warning message that I see on local:

Glimpse.AspNet.Policy.LocalPolicy *This policy means that Glimpse won't run remotely.*

Any ideas on a solution?


Solution

  • As I was on MVC and Azure I needed to do both steps listed here.

    Then in views/web.config add:

    <add namespace="Glimpse.Mvc.Html" />