Home > Articles > Details

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

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.


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..

Posted On: June 13, 2020 21:40:21 PM
Merry said:

Thank you,

Posted On: June 13, 2020 12:45:08 PM

© 2022 - ErnesTech - Privacy