This post shows you how to fix 'error CS1963: An expression tree may not contain a dynamic operation' in ASP.NET or ASP.NET Core MVC.

At the top of your View

You should define a @model variable

For Example

@model ERegist.Models.EmployeeViewModel

Don't write

@Model ERegist.Models.EmployeeViewModel

Next, You can write your expressions as shown below

@Html.EditorFor(m => m.FullName, ...

Don't write

@Html.EditorFor(m => Model.FullName, ...

I hope so you can solve the problem 'error CS1963: An expression tree may not contain a dynamic operation' when rebuild your asp.net or asp.net core mvc project in visual studio.