asp.net - Wrong version of JQuery being loaded -
i opened old asp.net application working on , updated nuget packages. when try run app following errors:
http://localhost:7055/scripts/jquery-1.8.2.min.js failed load resource: server responded status of 404 (not found) http://localhost:7055/scripts/jquery.signalr-1.0.0.js failed load resource: server responded status of 404 (not found)`
the above taken chrome console tab.
here page source shows in chrome:
<!--script references. --> <!--reference jquery library. --> <script src="/scripts/jquery-1.8.2.min.js" ></script> <!--reference signalr library. --> <script src="/scripts/jquery.signalr-1.0.0.js"></script> <!--reference autogenerated signalr hub script. --> <script src="/signalr/hubs"></script>
however, not versions referencing in actual source. here actual source:
<!--script references. --> <!--reference jquery library. --> <script src="/scripts/jquery-2.1.4.min.js" ></script> <!--reference signalr library. --> <script src="/scripts/jquery.signalr-2.2.0.min.js"></script> <!--reference autogenerated signalr hub script. --> <script src="/signalr/hubs"></script>
here contents of packages.config:
<?xml version="1.0" encoding="utf-8"?> <packages> <package id="jquery" version="2.1.4" targetframework="net45" /> <package id="knockout.mapping" version="2.4.0" targetframework="net45" /> <package id="knockoutjs" version="3.3.0" targetframework="net45" /> <package id="microsoft.aspnet.signalr" version="2.2.0" targetframework="net45" /> <package id="microsoft.aspnet.signalr.core" version="2.2.0" targetframework="net45" /> <package id="microsoft.aspnet.signalr.js" version="2.2.0" targetframework="net45" /> <package id="microsoft.aspnet.signalr.systemweb" version="2.2.0" targetframework="net45" /> <package id="microsoft.owin" version="3.0.1" targetframework="net45" /> <package id="microsoft.owin.host.systemweb" version="3.0.1" targetframework="net45" /> <package id="microsoft.owin.hosting" version="3.0.1" targetframework="net45" /> <package id="microsoft.owin.security" version="3.0.1" targetframework="net45" /> <package id="mongodb" version="1.7.1.4791" targetframework="net45" /> <package id="newtonsoft.json" version="7.0.1" targetframework="net45" /> <package id="owin" version="1.0" targetframework="net45" /> </packages>
i have tried cleaning, stopping iis express sites, deleting temp files c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\ , rebuilding , still problem persists.
where pulling old reference from? have no other script references in code.
thanks in advance,
greg.
i had same problem , how fixed it.
1. print version system loading so: console.log( "you running jquery version: " + $.fn.jquery); 2. view source of html page rendered. 3. jquery source added, checking @ <script> imports. 4. source code getting added. 5. fix that, build, , repeat step 2 until right version.
good luck.
Comments
Post a Comment