0

i have mvc application and i was debugging it in vs 2013 premium very well in all browsers in my old laptop, but after i installed vs 2013 ultimate on my new laptop, the application does not load correctly in chrome : it does not load css,javascripts ... but in IE it runs very well with no anyerror ...

i am using :

MVC 5.2.0 , Bootstrap 3.1.1

In Chrome's console i can see these strange errors :

enter image description here

however, i tried to :

  1. debug my application again in my old laptop and it loads well.

  2. reinstall MVC 5.2.0 and even the newer version 5.2.3 but didn't work.

  3. clean, rebuild the project but also didn't work.

Note : i published this web application to the web and it works very well in all browsers , so the problem is just about debugging ?.

Edit : i can see now in my views this error appears everywhere where HtmlHelpers are used :

the name 'model' does not exist in the current context

Thanks.

ekad
  • 14,436
  • 26
  • 44
  • 46
AymAn AbuOmar
  • 403
  • 1
  • 5
  • 16
  • 1
    it can't find jquery. make sure you've defined jquery before other scripts that are using it. – DLeh Jun 09 '15 at 15:12
  • 1
    Check your `Network` tab and see if you're actually loading the resources...and go from there. Hth... – EdSF Jun 09 '15 at 15:13
  • Thanks. As i saw, all things are loaded but Jquery, but really i do not know why it does not load, because all things are working well in other browsers, i am thinking now about permissions maybe to access jquery ? because it's on localhost ?? – AymAn AbuOmar Jun 09 '15 at 15:25
  • Please, could you see my new edit ? – AymAn AbuOmar Jun 09 '15 at 15:35
  • 1
    Check this http://stackoverflow.com/a/19696998/1638261 – jomsk1e Jun 09 '15 at 15:37
  • i changed the version from 5.2 to 5.0 and then error (the name 'model' does not exist in the current context) solved, but the application still cannot load correctly :( – AymAn AbuOmar Jun 09 '15 at 15:52

0 Answers0