[Entity Framework Core 5] An Unhandled Exception Occurred While Processing the Request


Question: How do you solve the Entity Framework Core Error: "An Unhandled Exception Occurred While Processing the Request"?

Login to See the Rest of the Answer

Answer: Add nullable's to the Modal Class like so: public int? Old {get; set;} or public string? youName {get; set;}
What is happening is that the data getting retrieved has empty strings in it or is null.


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

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


© 2023 - ErnesTech LLC- Privacy