Glimpse Not working at all
Asked Answered
T

3

6

I installed Glimpse for MVC5 via Install-Package Glimpse.MVC5

I turned on Glimpse on the Glimpse config page: /Glimpse.axd

When try to now hit my site, nothing happens. If I turn off Glimpse the site works as expected.

There are no error message or anything http related in Chrome network tools, only a request of: data:text/html,chromewebdata with a response of "Failed to load response data"

This is what Glimpse put in my web.config when I installed it. Not sure how to troubleshoot this.

<httpModules>
  <add name="Glimpse" type="Glimpse.AspNet.HttpModule, Glimpse.AspNet" />
</httpModules>
<httpHandlers>
  <add path="glimpse.axd" verb="GET" type="Glimpse.AspNet.HttpHandler, Glimpse.AspNet" />
</httpHandlers>

<modules>
  <add name="Glimpse" type="Glimpse.AspNet.HttpModule, Glimpse.AspNet" preCondition="integratedMode" />

<handlers>
  <add name="Glimpse" path="glimpse.axd" verb="GET" type="Glimpse.AspNet.HttpHandler, Glimpse.AspNet" preCondition="integratedMode" />
Tridimensional answered 12/7, 2014 at 17:5 Comment(0)
T
2

Just needed to set dynamicCompressionBeforeCache to false and it works:

<urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="false" />
Tridimensional answered 12/7, 2014 at 17:16 Comment(3)
Glad you got things sorted out.Forewarn
where should i place this line in web.configZel
You should place that within <system.webServer>Tridimensional
L
13

After adding the Glimpse.AspNet NuGet package, I found that the ASP.NET Development Server was crashing on every request because Glimpse was throwing a NotSupportedException (I only found this after attaching a debuger to the dev server process). The exception's message said:

Some environments conflict with current Glimpse async support. Please set Glimpse:DisableAsyncSupport = true in Web.config, or see https://github.com/Glimpse/Glimpse/issues/632 for more details.

After reading through the GitHub issue, I added this to the appSettings section of my web.config file to get everything working:

<appSettings>
    <add key="Glimpse:DisableAsyncSupport" value="true" />
<appSettings>

See: Glimpse Issue: Allow users to disable use of Logical Call Context #632

Laden answered 29/8, 2014 at 22:50 Comment(1)
This solved my problems with RDLC Reports, when I got a ReportProcessingException while creating a report. Now the report engine works again.Asaph
T
2

Just needed to set dynamicCompressionBeforeCache to false and it works:

<urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="false" />
Tridimensional answered 12/7, 2014 at 17:16 Comment(3)
Glad you got things sorted out.Forewarn
where should i place this line in web.configZel
You should place that within <system.webServer>Tridimensional
V
1

Another alternative, instead of simply turning off compression, is to use the @Html.GlimpseClient() Razor Helper right before the </body> tag in your HTML.

The troubleshooting section of the Glimpse documentation covers how to do this.

Vanna answered 14/7, 2014 at 17:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.