Portable areas breaks my templated helpers with latest version of mvccontrib
193 views
Skip to first unread message
Kjetil Haga
unread,
Aug 4, 2011, 8:55:24 AM8/4/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mvccontrib-discuss
Upgrading mvccontrib from 3.0.68.0 to 3.0.81.0 (from NuGet) breaks my
MVC3 app. I get the following exception:
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]'.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: 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]'.
Source Error:
Line 9: </p>
Line 10:
Line 11: @Html.DisplayForModel()
I have reproduced the problem in a new empty MVC 3 app created from
the wizard. Calling
PortableAreaRegistration.RegisterEmbeddedViewEngine() in
Application_Start will introduce the same exception as above when
calling a templated helper.