asp.net-mvc – 使用Visual Studio 2013 Preview调试ASP.NET MVC应用程序时,Page使用无效或不受支持的压缩形式

在尝试使用最近发布的VS 2013 Preview调试ASP.NET MVC项目时,我收到以下消息:

Content Encoding Error

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.

在Firebug中,我看到此错误消息:

SecurityError: The operation is insecure

尝试使用谷歌Chrome和IE 11,同样的问题发生了.

是什么造成的?

注意:我在Windows 8.1上使用IIS Express在http:// localhost:7777上调试站点

我可以使用VS 2012进行调试.

解决方法

好吧……在尝试了一些选项之后,我在VS 2013工具栏中禁用了浏览器链接,我的应用登录页面刚刚出现.

看起来他们需要做更多的工作,因为在我的情况下它没有开箱即用.

在使用Microsoft开发人员调试问题后,Mads Kristensen(ASP.NET上的PM)深入了解了我的Web.config文件中的问题.

内部< system.webServer>我有

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

dynamicCompressionBeforeCache =“true”会干扰HttpModules(这是browser Link使用的).将其设置为false将启用Visual Studio 2013 Preview中的浏览器链接.

参考

Browser Link用于将Visual Studio直接连接到浏览器.

Browser Link – SignalR channel between browser and Visual Studio

Browser Link feature in Visual Studio Preview 2013

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....