❔ System.NullReferenceException 'Object reference not set to an instance of an object.'
Hello!
I'm getting a little desperate here:
This is my index code:
This is my index.cshtml:
Why do I get this exception? I've been at it for over an hour, I'm new at this, and I'm very confused
5 Replies
where is the exception occuring
At the Foreach, the "Model" part
is this happening when the page first loads, or after you try to submit a form or something? As is, it seems fine
When I try to run the app
._.' Closed the project, re-opened and my HomeController had gone to its initial state
Tried doing the exact same thing, it's now working, for some reason :|
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.