I have an application that I built a few years ago running in ASP.NET 4.0. It was running fine, however the server crashed and we had to move the code to a new server. It was running in IIS 7 before, but now the new server ( 2016 ) is running IIS v 10. I've set up the application to the best of my memory as it was on the old server, and the app comes up. However, during the logon process I use the HttpContext.current and just this reference throws this exception:
Object reference not set to an instance of an object.
Since this has been running for years I fear there's just something I'm missing in setting the site up that basically has it with no HttpContext ( again, just trying to reference HttpContext.current crashes.
If anyone can point me in the right direction I would be greatly appreciative.