2011-07-02 31 views
4

从MvcContrib.Mvc3-CI刚刚更新3.0.73.0到3.0.75,和先前的工作平原ViewUserControl抛出一个运行时异常:MvcContrib.Mvc3-ci 3.0.75.0突破变化?

The model item passed into the dictionary is of type 'System.String', but this dictionary requires a model item of type 'MvcContrib.UI.InputBuilder.Views.PropertyViewModel`1[System.Object]'. 

“攻击”的编辑需要从模型中的普通字符串:

<%: Html.EditorFor(m => m.Model.NEV) %> 

恢复到3.0.73.0,编辑器再次工作。有任何想法吗? (3.0.74.0似乎也在工作)

+0

投票关闭太本土化,这属于MvcContrib论坛/问题清单。 –

回答

0

我遇到了同样的错误。看来,如果您使用除EditorFor之外的其他任何东西,它都可以正常工作。所以如果你知道哪个HTML编辑器需要渲染使用(例如@ Html.TextAreaFor(x => x.Model.NEV)

5

我有同样的问题,并解决它恢复到版本:3.0。 73.0

Uninstall-Package MvcContrib.Mvc3-ci -Force 
Install-Package MvcContrib.Mvc3-ci -version 3.0.73.0 
+0

我有这个问题,版本3.0.100.0 – Brian