Page uses an invalid or unsupported form of compression when debugging ASP.NET MVC app with Visual Studio 2013 Preview

前端 未结 2 955
有刺的猬
有刺的猬 2020-12-06 06:29

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

Content Encoding Error

2条回答
  •  -上瘾入骨i
    2020-12-06 06:51

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

    enter image description here

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


    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.

    Inside element I have:

    
    

    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.


    References

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

    Browser Link – SignalR channel between browser and Visual Studio

    Browser Link feature in Visual Studio Preview 2013

提交回复
热议问题