MvcContrib.Mvc3-ci 3.0.75.0 violation?

It was just upgraded from MvcContrib.Mvc3-ci 3.0.73.0 to 3.0.75, and the previously working simple ViewUserControl threw an exception to execute:

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]'. 

The Offensive Editor accepts a simple line from the model:

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

Return to version 3.0.73.0, and the editor works again. Any ideas? (3.0.74.0 also seems to work)

+4
source share
2 answers

I had the same problem and decided to revert to version: 3.0.73.0

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

I came across the same error. It seems that if you use something other than EditorFor, it works fine. So if you know which HTML editor to render, use this (e.g. @ Html.TextAreaFor (x => x.Model.NEV)

0
source

All Articles