瞥见根本不起作用 [英] Glimpse Not working at all

查看:89
本文介绍了瞥见根本不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Install-Package Glimpse.MVC5

我在Glimpse配置页面上打开了Glimpse:/Glimpse.axd

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

现在尝试访问我的网站时,什么都没有发生.如果我关闭了Glimpse功能,则该站点将按预期运行.

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

Chrome网络工具中没有错误消息或与http相关的任何内容,只有以下请求:data:text/html,chromewebdata,响应为"Failed to load response data"

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"

这是安装时Glimpse放在我的web.config中的内容.不确定如何解决此问题.

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

推荐答案

只需将dynamicCompressionBeforeCache设置为false即可,并且有效:

Just needed to set dynamicCompressionBeforeCache to false and it works:

<urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="false" />

这篇关于瞥见根本不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆