DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
224 stars 79 forks source link

Target of an invocation error now being thrown after upgrading to 3.17.7 #451

Open johnwc opened 7 years ago

johnwc commented 7 years ago

Getting this error now. When using this code. The model (also is x) is of type UserDetailModel, the sub property User is of type EmployeeDTO. This worked just fine until version 3.17.2, I've test in 3.17.1 and it still works.

 @f.FormGroup().DisplayFor(x => x.User.FirstName)

The model item passed into the dictionary is of type 'UserDetailModel', but this dictionary requires a model item of type 'EmployeeDTO'.

johnwc commented 7 years ago

No response?

DmitryEfimenko commented 7 years ago

Yeah, I see where the bug crawled in. Is using version 3.17.1 an option for you or were there any bug fixes since that version that you need? If you can use 3.17.1, please do and I'll see what can be done about that issue. It's possible I'll have to rollback some changes.

johnwc commented 7 years ago

I can work with 3.17.1 for now, but I'd like to update to the latest as some point.