C#C
C#3y ago
Yume

❔ ASP.NET MVC: Object reference not set to an instance of an object

I'm getting a confusing error in my view, hard to google. It was working before and I don't know what might've caused it. Anyone seen this before or know how I can troubleshoot? Even weirder is I got a different version of this same error a couple lines down with the code @Html.Partial("~/Views/Shared/_Header.cshtml"). I removed it and now get the pictured error, even though the Layout code should've been run first??
image.png
Was this page helpful?