asp.net mvc - All .Net sample apps giving assembly issues -


recently project of mine starting having issues linq in views. couldn't figure out why happening created project in vs 2013 using default web app template mvc 4. giving me same issues. app runs fine, intellisence isn't referencing model being used , references model in view giving error:

the type arguments method 'system.web.mvc.html.labelextensions.labelfor<tmodel,tvalue>(system.web.mvc.htmlhelper<tmodel>, system.func<tmodel,tvalue>>)' cannot inferred usage.

enter image description here

the project created .net 4.5.1 target framework , can verified in project's properties , web.config:

<compilation debug="true" targetframework="4.5.1" /> <httpruntime targetframework="4.5.1" /> 

i have tried creating sample mvc app on computer , moving over. worked fine on other computer, giving same error once opened on main computer.

any ideas causing issue , how resolve it?

sorry writing here don't have enough rep write in comments. had similar problem resolved changing:

<compilation debug="true> 

to

<compilation debug="true" targetframework="4.0"> 

Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -