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.
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
Post a Comment