I moved a C# solution from one computer (running VS2015) to another (running VS2017). The solution contains some class libraries and an ASP.net website project.
When I run my application on the new computer, I get runtime exceptions at seemingly random places throughout my code. These exceptions say that I have a NullReferenceException for objects retrieved from the database. But if I highlight the error code in the editor to evaluate the problematic expression, it's showing that the object in question actually isn't null at all.
In the above screenshot, you'll see the compiler is reporting that the "get" request for my Player object was null. But if I hover over the FullName property for this Player object, it is populated (as seen in the picture, his full name is "Thomas Rawls". This means the Player object could not have been NULL, no?
Here are my specific exception details.
I copied my code to the new machine twice, and restored it's database twice, but I continue to get these NULL exception errors. The web site still runs fine on my old machine.
Any clue as to what could be happening here?