161

I've upgraded to VS.NET 2013, and now, every time I start to debug an ASP.NET MVC4 app in IIS, some how __vwd/js/artery is created, this script is interfering with my RequireJS setup and it crashes the jQuery reference.

Does anyone know how can i get rid of this script?

__vwd/js/artery

window.vwdTempJQuery = window.jQuery = window.$;
window.jQuery = window.$ = null;
window.vwdTempJSON = window.JSON;

*! jQuery v1.8.2 jquery.com | jquery.org/license */

.....

// Restore original jQuery references.
window.jQuery = window.$ = window.vwdTempJQuery;
window.vwdTempJQuery = null;
// Restore original JSON.
if (window.JSON !== window.vwdTempJSON)
    window.JSON = window.vwdTempJSON;

....

LE: It has been fixed in Visual Studio 2013 RTM

Luke Girvin
  • 13,221
  • 9
  • 64
  • 84
Stefan P.
  • 9,489
  • 6
  • 29
  • 43
  • it doesn't seem to be fixed. I'm still getting errors on the console (even tho it doesn't seem to cause much trouubles). My version of VS2013 is: 12.0.21005.1 REL –  Dec 06 '13 at 09:46
  • @Geeo are you getting errors when loading jQuery with RequireJS? – Stefan P. Dec 06 '13 at 17:34
  • I'm not using RequireJS but when "Browser Link" is active I get errors in the console. –  Dec 07 '13 at 08:53
  • Took me forever to find this answer - Mainly because I didn't know what to ask that wasnt vague.. – TheGeekZn Apr 17 '14 at 09:49

2 Answers2

316

A friend of mine found it, it's Enable Browser Link enter image description here

Stefan P.
  • 9,489
  • 6
  • 29
  • 43
  • 1
    I'm having the same issue this fixed it for me too but this feature is one of the main reasons I'm even trying this preview and would really like to see this fixed soon. I filed a bug using your question here (https://connect.microsoft.com/VisualStudio/feedback/details/793612/vs-2013-browser-link-generated-script-causes-jquery-reference-to-be-broken-when-using-requirejs) – parliament Jul 12 '13 at 06:16
  • 1
    Thank you for this, turning it off also helped to get rid of problem with empty WebResources.axd files under vs2013 in chrome. – vittore Jul 24 '13 at 17:06
  • Would it be possible to send us a sample app that reproduces the issue with RequireJS? We would like to address this in the upcoming release. Please send the details to **reshmim** at Microsoft.com. Thank you for your feedback! -Reshmi Mangalore – reshmi mangalore Aug 15 '13 at 17:43
  • @reshmimangalore please test on this project https://github.com/stefanprodan/RequireJSDotNet – Stefan P. Aug 15 '13 at 22:28
  • @Vlad it causes issues with RequireJS or you have a different setup? – Stefan P. Nov 15 '13 at 14:21
  • @StefanP. Different setup - a brownfield project with jQuery and some MicrosoftAjax. No RequireJs. Enabling Browser Link messes up the tabbed interface we have. – Vlad Iliescu Nov 18 '13 at 08:15
  • 1
    these toolbars are non-existant in VS 2013 Professional edition - how do I turn off this crap? – Contra Jun 10 '14 at 11:35
  • 16
    For those of you that have your toolbars disabled (like I do), you can find this under the "Standard" toolbar. – MrDustpan Jul 04 '14 at 15:33
  • @MrDustpan, I would like to add this "Browserlink" button to another toolbar. Where is it in "Add Command"? – Patrick Szalapski Nov 11 '14 at 15:00
  • 1
    So _that_ was the cause of my Visual Studio Professional 2013 (Update 4) eating up my CPU cycles, as well as my browser (Chrome). Could hardly get any work done because of this - wrongly blaming my poor extensions. Good bye Browser link! *unchecking feature by pressing hard on mouse button* ngh! – HenrikW Nov 21 '14 at 09:48
  • Awesome this work for me as well. Hard to Web Debug with 100's to 1000's of the arterySignalR requests. – Moojjoo Jul 31 '15 at 12:31
  • If after turning it off `Stephan P's` way and it is still polling, a probable cause is that you need to also turn it off in the other instances of Visual Studio you have running. – Serj Sagan Aug 14 '15 at 22:17
  • Interestingly, when I had the Default Host Application set to Google Chrome (as pictured in this answer), hitting the "live" URL with Firefox caused the Browser Link to come back, even though I'd turned it off. (I have Firefox tuned to use a < 100% zoom when I don't have an external monitor.) Changed the Default Host Application to Firefox, and it's happy, strangely enough. – ruffin Mar 02 '16 at 21:22
56

I found that it was still running until I actually added a value for it in the Web.config appSettings to turn it off.

<add key="vs:EnableBrowserLink" value="false" />
Andrew Duffy
  • 795
  • 2
  • 17
  • 37