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



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

SecurityError: The operation is insecure

尝试使用谷歌浏览器和IE 11并发生相同的问题。

是什么原因造成的?

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

我可以使用VS 2012对其进行调试。

最佳答案

好吧...尝试了一些选项后,我在VS 2013工具栏中禁用了Browser Link,我的应用登录页面刚刚出现。

看来他们需要为此做更多的工作,因为在我看来,这并不是开箱即用的。

在与Microsoft开发人员一起调试问题之后,Mads Kristensen(ASP.NET上的PM)深入到了我的Web.config文件中的问题所在。

<system.webServer>元素里面,我有:

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

dynamicCompressionBeforeCache="true"会干扰HttpModules(这是浏览器链接所使用的)。将其设置为false将启用Visual Studio 2013预览中的浏览器链接。

引用

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

Browser Link – SignalR channel between browser and Visual Studio

Browser Link feature in Visual Studio Preview 2013

关于asp.net-mvc - 使用Visual Studio 2013预览版调试ASP.NET MVC应用时,页面使用无效或不受支持的压缩形式,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/17378065/

10-11 22:52
查看更多