Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
what is this error in mvc4
Nizam Nizam
Mar 6 2015 11:47 PM
471
Reply
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 38: @foreach (var divcls in dc)
Line 39: {
Line 40: var students = Model.Where(S => S.Stud_Status.FirstOrDefault(A => A.AcademicYearId == SessionValues.Current.AcademicYear.AcademicYearId).Sett_DivisionsInClasses.DivInClassId == divcls.DivInClassId).ToList();
Line 41: var Btotal = students.Count(b => b.Gender == "M");
Line 42: var Ftotal = students.Count(f => f.Gender == "F");
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Sending mail in asp.net??
how to show grand total in view mvc4