Search code examples
javascriptjqueryvisual-studio-2013localhost.net-4.5.2

Funny characters in my ASP.Net MVC html when debugging using localhost


I have a weird issue. My site works fine on QA and LIVE environments but I can not debug using localhost. It renders lot of weird characters as shown in the picture. This breaks the Javascript and site doesn't work at all.

I didn't have xmlns property in tag and after adding that some weird characters have gone but not all.

This started happening right after I upgraded my .Net framework to 4.5.2 and started using Visual Studio 2013.

I have few websites setup with same/similar code and JS libraries. They are working fine in my localhost.

Don't where the issue is. Any guidance will help.

QA link to check the html is https://vodafonehub.synchro.com.au

Image is at https://i.sstatic.net/oZtUE.png


Solution

  • To solve this issue uncheck Enable Browser Link and reload the web page (rebuild shouldn't be necessary).

    enter image description here

    Related to Browser Link feature in VS 2013. Look for this in your toolbar:

    You can find more related info in:

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

    Garbage tags showing up in MVC views after installing VS 2013 + .Net 4.5.1