Question

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?

Was it helpful?

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" />

OTHER TIPS

In your Web.config add the runtimePolicy as below.

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

And then add @Html.GlimpseClient() to the end of your Layout page.

No idea why this second part is necessary for remote and not local, but it worked for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top