MVC5 Microsoft.CSharp.RuntimeBinder.RuntimeBinderException

前端 未结 7 1944
春和景丽
春和景丽 2021-02-01 21:52

Ive been working on converting a MVC4 project over to MVC5. The first day I ran into an \'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException\' but was able to resolve it by s

7条回答
  •  野性不改
    2021-02-01 22:32

    For me I had changed the contents of the ManageUserViewModel to add a property... I then started getting the error. When I changed the Manage.cshtml from not using an explicit model to using:

    @model XYZ.Models.ManageUserViewModel

    and removed the using statements, it started working again. One hour wasted!

提交回复
热议问题