Unable to look at working with remote IIS

I tried everything I could think of, so I turn to SO. I cannot get Glimpse to work on a remote IIS server. I am using Glimpse 1.2 with the extensions ADO, ASP.NET, EF5 and Mvc4. Everything works wonderfully when I run the web application locally using the VS development server. However, I cannot make the Glimpse icon appear when deployed to our remote development server. Here is what I tried and noticed:

  • I ignore LocalPolicy in my web.config :

     <glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd"> <inspectors> <ignoredTypes> <add type="Glimpse.Mvc.Inspector.DependencyInjectionInspector, Glimpse.Mvc4" /> <add type="Glimpse.AspNet.Policy.LocalPolicy, Glimpse.AspNet"/> </ignoredTypes> </inspectors> </glimpse> 
  • I can access /Glimpse.axd and click the power button without problems

  • A cookie is set with the contents:

     glimpsePolicy On backofficetest/ 1088 2027053056 32990064 3189135193 30291671 * 
  • Enabling Glimpse Log does not display error or warning messages. It generates the following for each request:

2013-04-11 12:43:06.8992 | DEBUG | RuntimePolicy set to 'Off' by IRuntimePolicy of type 'Glimpse.AspNet.Policy.LocalPolicy' during RuntimeEvent 'BeginRequest'.

  • Fiddler verifies that no calls are associated with any Glimpse-related resources at the time of the request.

  • The page source has nothing to do with Glimpse.

I'm sure I missed the setup somewhere, but it drives me crazy. Does anyone have any ideas?

Thanks.

+4
source share
2 answers

You must update the configuration, for example:

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

Runtime policies and inspectors are two different things and are configured in their own nodes.

+11
source

Even I had a similar problem. It worked on my local machine, but when hosted on IIS it did not work. I used the nikmd23 code and it worked, later I realized that only <runtimePolicies> .

Here is what works for me:

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

All Articles