asp.net mvc 3 strongly typed ViewData-Model compilation error
I have a site originally build with MVC1 later migrated to MVC2 and now I am trying to migrate it to MVC3 but I am having some trouble compiling my strongly typed ViewData.Model
The Page directive is correctly set but th开发者_如何学Pythone compiler does not seem to pick up the correct class and complains the ViewData.Model is of type object.
Anybody had any luck solving this problem?
Intellisense seem to pick up the type correctly but not the compiler
Check the assembly names and versions in your Web.configs.
You probably have a reference to an System.Web.Mvc.dll v2.
精彩评论