MVC 5 Update ALL

Topics: General
Feb 3, 2014 at 1:52 PM
Edited Feb 3, 2014 at 5:30 PM
I have created a MVC 5 web application with razor and when I first run the application in IE I had no issues, after updating all from the NUGET manager I find that IE has 4 dialog boxes to dismiss for each page to display. After getting the page to display the page has exaggerated fonts and distorted columns.

I wanted to amend this as I have just created a new mvc project and will not update the project. I ran the project in IE and google and have no more dialog boxes flying out at me but I was wrong about the display. IE displays the view differently to google and IE displays the view is as just hideous without the error.

Not getting this issue in google and the page displays correctly

Unhandled exception at line 3398, column 4 in http://localhost:51094/Scripts/jquery-2.1.0.js

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'addEventListener'

Unhandled exception at line 7, column 38 in http://localhost:51094/Scripts/bootstrap.js

0x800a139e - JavaScript runtime error: Bootstrap requires jQuery

Unhandled exception at line 26, column 1 in http://localhost:51094/Scripts/jquery.validate.js

0x800a1391 - JavaScript runtime error: 'jQuery' is undefined

Unhandled exception at line 23, column 1 in http://localhost:51094/Scripts/jquery.validate.unobtrusive.js

0x800a1391 - JavaScript runtime error: 'jQuery' is undefined
Feb 13, 2014 at 12:45 AM
this issue is also being discussed here:

For me, it occurs vs2013/ie10.0.12 but not in Firefox 26.0/27.0.

Feb 13, 2014 at 3:58 AM
Edited Feb 13, 2014 at 4:06 AM
@ ALL please try to reproduce; i've successfully reproduced this in both vs2013 web express and vs2013 ultimate.

The cause is clear. The solution is not.

Steps to reproduce

(a) create a new APS.NET MVC 5 application. it will contain: .
<package id="jQuery" version="1.10.2" targetFramework="net45" />

(b) run it with F5. it will work.

(c) use NuGet, upgrade ONLY jQuery. it will contain:
<package id="jQuery" version="2.1.0" targetFramework="net45" />

(d) build it; it will fail

FWIW, jquery-2.1.0.js contains 9112 lines ... personally, i'd hate to debug that at the moment because i'm in the middle of trying to launch a new business.

Workarounds (untested, not recommended, and all unpleasant):

1 -- drop back to a previous version of jQuery

2 -- do not use anything that depends on jQuery

3 -- kill the code that causes the crash ... side effects are unpredictable.



at, the download version currently being offered is:



end EDIT.