2011-07-02 35 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