Asp.Net Core 3.1 Razor View Error: CS1963: An expression tree may not contain a dynamic operation

Question: How do you resolve: Asp.Net Core 3.1 Razor View Error: CS1963: An expression tree may not contain a dynamic operation


Please Login to see the rest of the answer

Answer: It is most likely that you haven't defined a @modal in one of the ViewComponents or the View. Double-check and see if you have @modals in your ViewComponent cshtml files.

Let me know if this resolves the problem by leaving a comment below: You don't have to sign up for an account or login to comment.


Write an Article
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.

Josh said:

This was helpful..

Merry said:

Thank you,


© 2022 - ErnesTech - Privacy