TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nizam Nizam
NA
32
21.1k
what is this error in mvc4
Mar 6 2015 11:47 PM
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");
Reply
Answers (
2
)
Sending mail in asp.net??
how to show grand total in view mvc4