开发者

asp.net mvc 3 strongly typed ViewData-Model compilation error

开发者 https://www.devze.com 2023-01-11 08:30 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号