Visual Studio 2013 produces garbled/corrupted/wrong-encoded html

后端 未结 2 1481
梦如初夏
梦如初夏 2020-12-20 16:27

I have a MVC4 Web project with Razor, which works fine in VS2012. In VS2013, after clean-rebuild, the same web project produce html with encoding issues. it

相关标签:
2条回答
  • 2020-12-20 16:52

    Browser Link can also be disabled via web.config, as follows:

    <configuration>
      <appSettings>
        <add key="vs:EnableBrowserLink" value="false" />
      </appSettings>
    </configuration>
    
    0 讨论(0)
  • 2020-12-20 17:04

    Could be the Browser Link feature in VS 2013. Look for this in your toolbar:

    Browser Link UI

    Uncheck Enable Browser Link and reload the web page (rebuild shouldn't be necessary).

    I figured this out noticing a bunch of requests like http://localhost:64667/613318d74fb54ab5bed269c36eb39fde/arterySignalR/connect... in Fiddler that I had never seen before. Also, using the Raw tab of the inspector in Fiddler showed lots of random unprintable bytes being injected into the HTML of my web pages.

    0 讨论(0)
提交回复
热议问题