Monday, 30 April 2018

asp.net mvc 3 - The name 'model' does not exist in current context in MVC3

I added a cshtml page in an project. When I tried to add the following declaration to it, I get an error: "The name 'model' does not exist in current context".



@model xyz.abc.SomeClass


I checked the references, all of them are in place. I added a web.config in view folder, but that didn't fix it.



Is there anything i am missing?

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...