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

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.


Edit this Article
Entiity Framework 5 Asp.Net 5 Technology published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback
If you log in, you will be notified when someone leaves a comment.

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

Your Session is Ending
Login to Continue

© 2021 - ErnesTech - Privacy