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. its looks like this. Lots of ��� (question mark characters in a dark diamond)
I am pretty sure its VS2013 that is the cause - I have tried re-installing IIS, recreating the websites, disabling gzip compression, disabling caching, deleting temporary compiled files etc etc etc... I am using VS2013 Pro Edition in Windows 8.1.
If I switch back to VS2012 and clean-rebuild the response is back to normal.
I have also tried the <globalization> element in project, and meta Content-Type and same with http headers, various combinations of content type values etc, to fix encoding in VS2013 - all to no effect.
Any solutions?
Could be the Browser Link feature in VS 2013. Look for this in your toolbar:
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.
Browser Link can also be disabled via web.config, as follows:
<configuration>
<appSettings>
<add key="vs:EnableBrowserLink" value="false" />
</appSettings>
</configuration>
Related
As soon as I start typing data-bind in VS 2013 (fresh install with web essentials and resharper), the IDE slows to a crawl (one character typed every 3 seconds). I've applied the knockout registry fix to no avail. It seems Web Essentials is causing this. What can be done as a workaround (other than removing web essentials?)
If you have not tried already , can you try this suggestion from JetBrains web site
There are also reports on Web Essentials contributing to low
performance while editing .cshtml files. If you're affected by this
problem, consider going to Tools | Options | Web Essentials and
setting Auto-format HTML on Enter to False.
I have a really weird problem, be interested in some pointers
We have a website that we have coded from Visual Studio 2003 -> Visual Studio 2010. We are now looking at moving to 2013.
The website is in IIS, when I navigate to it using IE it works. When VS2013 is -open-, not running, but has the project open we get a weird effect where the contents of the website gets duplicated by 3, its as if there are 3 iframes on the page, all with a copy of the same web site.
I close VS2013 and it goes back to normal
So, just to be clear, we don't even have to run the web site from within VS2013, just the project being open is enough to cause the weird effect
We use subversion as as far as I can tell no files have been modified when VS2013 is open
Any suggestions?
Thanks
It's Browser Link that's doing it! If you switch off Browser Link it works.
The source shows some extra script entries before the final tag but other than that the whole source is duplicated.
We don't need Browser Link and I don't have reflection capabilities on Asp.Net source so as to why that's for some one else to determine, I noticed a few people complaining when I searched on it so it may be something that just gets fixed in a future version
I'm having a strange problem where I've got identical code in my local development machine running VS 2013 with IIS Express and my development server running IIS 7.5. It used to work fine but recently odd things started happening on my local machine. I saved off the rendered HTML output and noticed there was a small section of the layout code that didn't get rendered. I also noticed that the htm file from the server saved as ANSI and the HTML file from my local machine saved as UTF-8 BOM.
Any idea what might cause this?
We finally discovered this was caused by Visual Studios browser link functionality and to fix it we needed to disable it by putting this in the section of the web.config:
<add key="vs:EnableBrowserLink" value="false" />
Alternatively you can disable in in Visual Studio altogether.
More info: http://www.telerik.com/forums/the-new-browser-link-feature-in-vs-2013-is-causing-an-error-when-detailtable-of-hierarchy-radgrid-is-expanded
Details first: using VS2012, IE10, Windows 8, IIS 7.5 express, ASP.NET webforms application.
Problem: when I debug an ASP.NET web forms application, IE10 opens as expected but it's under IE10 compatibility mode using IE7 document standards. I would rather this did not happen as I have to remember to open the developer tools and change the browser version used in debugging. And plenty of times I have forgotten, assumed the layout and CSS is correct then remember sometime later to check that setting and find out everything is broken in non-IE7 versions.
It's rather frustrating and I cannot find any configuration files or settings within IE10 and VS2012 to change this. And I cannot find any configuration files for IIS 7.5 at all. And, in fact, I tried the VS2012 development server and it opens IE10 the same way, so most likely not an IIS express issue.
I should note: IE10 opens in non-compatibility mode for normal browsing. It only defaults this way in debugging web applications from VS2012.
Anybody know how to change this default setting? Thanks in advance.
I had the same problem.
Open IE
Press Alt and click Tools from IE menu bar
Select Compatibility View Settings
Remove localhost from Websites you added to Compatibility View
You can add the X-UA-Compatibility meta tag to force IE to run as a particular version, generally speaking you want to force it to edge, which forces it to run as the standards version:
<meta http-equiv="x-ua-compatible" content="IE=edge">
You can learn more about the meta tag here.
I am developing a basic .html website using visual studio. I am wondering on how other people find this experience. I do not really want to replicate the navigation, header, footer code in each page so what do you use?
I was thinking I might have to use master pages and aspx, unfortunately masterpages and .html do not go. In dreamweaver there used to be templates you could use for each section, which get parsed in when you display the website. I also know there may be various server-side workarounds but I am not really interested in that.
So, how do you cope? Are there any visual studio plugins I should know about?
Master pages is what you want. If you're using Visual Studio, just switch to aspx pages. They're no different than HTML as far as markup is concerned, so you'll be able to move your html to them easily.