Server Error in '/' Application.

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 24: 
Line 25: 
Line 26:         oAppDisciplinaDTO = oAppDisciplinaService.GetAppDisciplinaDTO(PageFunctions.GetLingua, DisciplinaID).First
Line 27: 
Line 28: 

Source File: C:\inetpub\wwwroot\TimeToDanceStudio\PagineWeb\1\_169.aspx.vb    Line: 26

Stack Trace:


[InvalidOperationException: Sequence contains no elements]
   System.Linq.Enumerable.First(IEnumerable`1 source) +335
   _169.Page_LoadComplete(Object sender, EventArgs e) in C:\inetpub\wwwroot\TimeToDanceStudio\PagineWeb\1\_169.aspx.vb:26
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnLoadComplete(EventArgs e) +9866566
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +795


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0