Glimpse does not work at all

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

I enabled Glimpse on the Glimpse configuration page: /Glimpse.axd

When you try to get to my site, nothing happens. If I turn off Glimpse, the site will work as expected.

There are no error messages or anything related to HTTP in Chrome’s network tools, only the request: data:text/html,chromewebdata with the response "Failed to load response data"

This is what Glimpse put into my web.config when I installed it. Not sure how to fix this problem.

 <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" /> 
+6
source share
3 answers

You just need to set dynamicCompressionBeforeCache to false and it works:

 <urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="false" /> 
+2
source

After adding the Glimpse.AspNet NuGet package, I found that the ASP.NET development server crashed for each request because Glimpse threw a NotSupportedException (I found this only after attaching the debugger to the dev server process). Exception Message:

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

After reading the GitHub issue, I added this to the appSettings section of my web.config so that everything works:

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

See: Display Problem: Allow Users to Disable Logical Call Context # 632

+13
source

Another alternative to simply disabling compression is to use @Html.GlimpseClient() Razor Helper right before the </body> in your HTML.

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

+1
source

Source: https://habr.com/ru/post/972122/


All Articles