加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc – 使用Visual Studio 2013 Preview调试ASP.NET MVC

发布时间:2020-12-15 22:26:46 所属栏目:asp.Net 来源:网络整理
导读:在尝试使用最近发布的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 owne
在尝试使用最近发布的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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读