网页调试与Visual Studio 2013 preVIEW ASP.NET MVC应用程序时使用COM pression的无效或不支持的格式 [英] Page uses an invalid or unsupported form of compression when debugging ASP.NET MVC app with Visual Studio 2013 Preview

查看:285
本文介绍了网页调试与Visual Studio 2013 preVIEW ASP.NET MVC应用程序时使用COM pression的无效或不支持的格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试使用最近发布的VS 2013 preVIEW我得到这个消息来调试 ASP.NET MVC 项目:

While trying to debug an ASP.NET MVC project using the recently released VS 2013 Preview I get this message:

内容编码错误

您试图查看该页面无法显示,因为它使用的是
  无效或不支持的形式融为一体pression的。

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

请联系网站所有者通知他们这个问题。

Please contact the website owners to inform them of this problem.

萤火虫我看到此错误消息:

SecurityError: The operation is insecure

与谷歌Chrome和IE 11和同样的问题发生试过

Tried with Google Chrome and IE 11 and the same problem happens.

是什么原因造成的?

请注意:我在Windows 8.1和 HTTP调试使用IIS防爆preSS网站://本地主机:7777

Note: I'm on Windows 8.1 and debugging the site using IIS Express at http://localhost:7777

我可以调试它只是使用VS 2012的罚款。

I can debug it just fine using VS 2012.

推荐答案

呃......尝试一些选项之后,我禁用浏览器链接在VS 2013的工具栏和我的应用程序登录页面刚刚出现。

Well... after trying some options, I disabled Browser Link in VS 2013 toolbar and my app login page just appeared.

看起来他们需要做更多这方面的一些工作,因为它没有在我的情况盒子的锻炼。

Looks like they need to do a bit more work on this because it didn't work out of the box in my case.

调试与微软开发者的问题,请的Mads克里斯滕森(ASP.NET的PM)后得那是在我的的Web.config 文件中的问题的底部。

After debugging the issue with Microsoft devs, Mads Kristensen (PM on ASP.NET) got to the bottom of the problem that was in my Web.config file.

< system.webServer> 元素我有:

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

这是 dynamicCom pressionBeforeCache =真正的的HttpModules 干扰(这是所使用的浏览器链接)。将其设置为使浏览器链接在Visual Studio 2013 preVIEW。

That dynamicCompressionBeforeCache="true" interferes with HttpModules (which is what is used by Browser Link). Setting it to false enables Browser Link in Visual Studio 2013 Preview.

参考

浏览器链接用于连接的Visual Studio直接将浏览器。

Browser Link is used for connecting Visual Studio directly to browsers.

<一个href=\"http://blogs.msdn.com/b/webdev/archive/2013/06/26/announcing-release-of-asp-net-and-web-tools-for-visual-studio-2013-$p$pview-and-the-refresh-update.aspx\">Browser链接 - 浏览器和Visual Studio

<一个href=\"http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-$p$pview-2013.aspx\">Browser在Visual Studio preVIEW链接功能2013

这篇关于网页调试与Visual Studio 2013 preVIEW ASP.NET MVC应用程序时使用COM pression的无效或不支持的格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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