[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"?


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


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.


© 2022 - ErnesTech - Privacy