I am working in ASP.NET MVC5 attempting to make a fairly simple program for a school assignment.
because of this line of code:
context.Facilities.AddOrUpdate(x => x.ID, new Facility() { ID = 1, FacilityAddressId = 1, Name = "School Playground", OwnerId = 1, Indoor = false, Sport = "soccer" });
I have now fixed the error. It turns out the foreign key "OwnerId" was referencing an empty table. My question is:
How could I have viewed the "inner exception" in my error message to help with the debugging process (the text in the console is plain text, not a link)