TwitterBootstrapMvc icon indicating copy to clipboard operation
TwitterBootstrapMvc copied to clipboard

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

Open johnwc opened this issue 7 years ago • 3 comments

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 avatar Mar 16 '17 23:03 johnwc

No response?

johnwc avatar Mar 26 '17 06:03 johnwc

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.

DmitryEfimenko avatar Mar 27 '17 17:03 DmitryEfimenko

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

johnwc avatar Mar 29 '17 01:03 johnwc