I have to make a library management app with C# MVC .Net Entity Framework and individual user account settings, but I am getting so confused about the initial settings! For examples, at the beginning I could open at least the home page of the app, now I don't know why I get the error on the @foreach (var x in Model)... the error is "System.NullReferenceException: Object reference not set to an instance of an object." What can be? Can be beacuse of a wrong setting of the DbContext?
Asked
Active
Viewed 7 times