RaymondYounan / LEMIS

Literacy Education Management Information System
1 stars 0 forks source link

P0: System Crashes - Unable to create Grade Section #474

Closed DrJoeHage closed 8 years ago

DrJoeHage commented 8 years ago

http://lsims.moe.gov.iq:8085/TermManagement/StageSections/Create/40 Al-Houda Women Literacy Center

Sequence contains no elements

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.InvalidOperationException: Sequence contains no elements

Source Error:

Line 322: l.EducCenterID == id && Line 323: l.SessionTerm.Session.EducTypeID == ApplicationHelper.EducType).OrderBy("EducCenterTermName_" + culture); Line 324: genderId = db.EducCenters.Where(l => l.EducCenterID == id).First().SchoolGenderID; Line 325: } Line 326:

Source File: c:\Users\joe\Source\Workspaces\EMIS\LEMIS.MVC\Areas\TermManagement\Controllers\StageSectionsController.cs Line: 324

RaymondYounan commented 8 years ago

Done

DrJoeHage commented 8 years ago

Verified.