Sequence contains no matching element

Server Error in '/' Application.

Sequence contains no matching element

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 matching element

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Sequence contains no matching element]
   System.Linq.Enumerable.Single(IEnumerable`1 source, Func`2 predicate) +470
   Com.BinaryBracket.BowlsResults.Data.Competition.GetStageByFormat(CompetitionStageFormats format) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalData\Competition.cs:104
   Com.BinaryBracket.BowlsResults.Business.Retrieval.Actions.BaseRetrievalAction.LoadCompetitionStage(CompetitionStageFilter filter) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalBusiness\Retrieval\Actions\BaseRetrievalAction.cs:44
   Com.BinaryBracket.BowlsResults.Business.Retrieval.Actions.BaseRetrievalAction.LoadCompetition(BaseRetrievalRequest request) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalBusiness\Retrieval\Actions\BaseRetrievalAction.cs:30
   Com.BinaryBracket.BowlsResults.Business.Retrieval.Actions.TeamLeagueTableAction.GetAll(GetTeamLeagueTableRequest request) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalBusiness\Retrieval\Actions\TeamLeagueTableAction.cs:20
   Com.BinaryBracket.BowlsResults.Business.Retrieval.RetrievalManager.GetLeagueTable(GetTeamLeagueTableRequest request) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalBusiness\Retrieval\RetrievalManager.cs:183
   Com.BinaryBracket.BowlsResults.Web.RetrievalService.Statistics.PageServlets.StatisticsPageServlet.GetTeamLeagueTable(Int32 competitionHeaderID) in C:\BinaryBracket\development\bowlsresults\Web\Source\RetrievalService\Statistics\PageServlets\StatisticsPageServlet.cs:39

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   Com.BinaryBracket.Servlets.ServletHandler.InvokeServletMethod() in C:\BinaryBracket\development\core\Source\Servlets\ServletHandler.cs:346
   Com.BinaryBracket.Servlets.ServletHandler.GetServletMethodResponseXml() in C:\BinaryBracket\development\core\Source\Servlets\ServletHandler.cs:468
   Com.BinaryBracket.Servlets.ServletHandler.ExecuteMethod() in C:\BinaryBracket\development\core\Source\Servlets\ServletHandler.cs:392
   Com.BinaryBracket.Servlets.ServletHandler.ExecuteRequest() in C:\BinaryBracket\development\core\Source\Servlets\ServletHandler.cs:109
   Com.BinaryBracket.Servlets.ServletHandler.ProcessRequest() in C:\BinaryBracket\development\core\Source\Servlets\ServletHandler.cs:93
   Com.BinaryBracket.Servlets.PageServletHandler.ProcessPageRequest(ServletContext context, String pageUri) in C:\BinaryBracket\development\core\Source\Servlets\PageServletHandler.cs:70
   Com.BinaryBracket.Servlets.PageServletHandler.ProcessRequest(HttpContext context) in C:\BinaryBracket\development\core\Source\Servlets\PageServletHandler.cs:56
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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