16

I am working on a project that a former colleague has made. If I run this ASP MVC 4 application in Firefox everything works fine but, when I run it on Internet Explorer 9 I get this weird error:

image

It says there is a error in the SignalR JavaScript Library but I never heard of this. It breaks into a JS file that is not even in the solution.

This SignalR extension is not installed.

All the references in my views:

<script type="text/javascript" src="~/Scripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="~/Scripts/perso.js"></script>
<script src="../../Scripts/jquery-1.7.1.js" type="text/javascript"></script>

UPDATE

I have found the problem, in my console log it breaks on this error:

TypeError: a[0] is undefined @ browserLink:37

This occurs in my jQuery files. I have updated them with the newest version but no success.

I have no idea how to fix this, any ideas?

5
  • What JavaScript references do you use in your project? Commented Nov 25, 2013 at 8:40
  • Updated my question with the JS files I use Commented Nov 25, 2013 at 8:56
  • Is perso.js referencing some other JS files? Commented Nov 25, 2013 at 9:25
  • /// <reference path="jquery-1.7.1.js" /> /// <reference path="jquery-ui-1.8.20.js" /> /// <reference path="jquery.validate.js" /> /// <reference path="jquery.validate.unobtrusive.js" /> /// <reference path="knockout-2.1.0.debug.js" /> /// <reference path="modernizr-2.5.3.js" /> This is added above. Don't use it tho. Should I remove it? Commented Nov 25, 2013 at 9:26
  • The image u shared is of Visual studio. Its nothing with IE9 Commented Nov 25, 2013 at 11:05

2 Answers 2

40

I imagine that you're using Visual Studio 2013? If so, there's a new feature called Browser Link, it's enabled by default. I just upgraded to VS2013 as well and I'm getting a lot of errors related to Browser Link, when I disable it everything works perfectly.

Here's some more information about Browser Link and how to disable it: http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

Sign up to request clarification or add additional context in comments.

2 Comments

Another Microsoft special! #BrokenByDesign
For VS 2017, in the debug toolbar there is a dropdown next to the "Refresh Linked Browsers" button. Click the dropdown and then you'll see the "Enable Browser Link" option.
0

One possible reason, duplication of jQuery file. As you incldued jQuery file twice which cause conflict and jQuery stops working:

<script type="text/javascript" src="~/Scripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="~/Scripts/perso.js"></script>
<script src="../../Scripts/jquery-1.7.1.js" type="text/javascript"></script>

so replace it with:

<script type="text/javascript" src="~/Scripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="~/Scripts/perso.js"></script>

1 Comment

Yes, I cleaned it up a bit but I still get the error on 2 of the 4 pages. I don't know why.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.