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

前端 未结 2 957
有刺的猬
有刺的猬 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条回答
  •  隐瞒了意图╮
    2020-12-06 06:55

    For me - This issue was related to web.config related compression settings. I had this one in my web.config:

    
      
    
    

    Which is supposed to cache static content, but apparently was corrupting my css files, and the browser couldn't view them. I just removed this line, and everything started working again.

提交回复
热议问题