我在MVC 1.0中调用了像这样的渲染部分:
<% Html.RenderPartial("~/views/shared/categories.ascx", ViewData.Model.Categories); %>
现在在删除MVC 2.0 .dll之后,我收到了错误:
CS1061: 'object' does not contain a definition for 'Categories' and no extension method 'Categories' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
改变了什么?
我是否必须更新我的解决方案或从mvc 1到2的任何内容?