query did not return a unique result: 2

Server Error in '/' Application.

query did not return a unique result: 2

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: NHibernate.NonUniqueResultException: query did not return a unique result: 2

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:


[NonUniqueResultException: query did not return a unique result: 2]
   NHibernate.Impl.AbstractQueryImpl.UniqueElement(IList list) +111
   NHibernate.Impl.CriteriaImpl.UniqueResult() +56
   NHibernate.Criterion.QueryOver`1.SingleOrDefault() +50
   NHibernate.Criterion.QueryOver`1.NHibernate.IQueryOver<TRoot>.SingleOrDefault() +5
   Com.BinaryBracket.BowlsResults.DataAccess.CompetitionRepository.GetByCompetitionHeaderAndSeason(Int32 competitionHeaderID, Int16 seasonID) in C:\BinaryBracket\development\bowlsresults\Platform\Source\DataAccess\CompetitionRepository.cs:35
   Com.BinaryBracket.BowlsResults.Business.Retrieval.Queries.BaseRetrievalQuery.LoadCompetition(Int32 competitionHeaderID, Nullable`1 season) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalBusiness\Retrieval\Queries\BaseRetrievalQuery.cs:19
   Com.BinaryBracket.BowlsResults.Business.Retrieval.Queries.TeamMatchesQuery.Load(Int32 competitionHeaderID, Nullable`1 season, Boolean includeGames) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalBusiness\Retrieval\Queries\TeamMatchesQuery.cs:59
   Com.BinaryBracket.BowlsResults.Business.Retrieval.Queries.TeamMatchesQuery.GetMatchDates(Int32 competitionHeaderID, Nullable`1 season, Nullable`1 teamID, Boolean includeGames) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalBusiness\Retrieval\Queries\TeamMatchesQuery.cs:35
   Com.BinaryBracket.BowlsResults.Business.Retrieval.RetrievalManager.GetCompetitionTeamMatches(Int32 competitionHeaderID, Nullable`1 season, Nullable`1 teamID, Boolean includeGames) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalBusiness\Retrieval\RetrievalManager.cs:245
   Com.BinaryBracket.BowlsResults.Business.Retrieval.Actions.KnockoutTeamSummaryAction.Execute(Int16 knockoutID, Int32 teamID) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalBusiness\Retrieval\Actions\KnockoutTeamSummaryAction.cs:27
   Com.BinaryBracket.BowlsResults.Business.Retrieval.RetrievalManager.GetKnockoutTeamSummary(Int16 knockoutID, Int32 teamID) in C:\BinaryBracket\development\bowlsresults\Platform\Source\OriginalBusiness\Retrieval\RetrievalManager.cs:345
   Com.BinaryBracket.BowlsResults.Web.RetrievalService.Statistics.PageServlets.StatisticsPageServlet.GetKnockoutTeamSummary(Int16 knockoutID, Int32 teamID) in C:\BinaryBracket\development\bowlsresults\Web\Source\RetrievalService\Statistics\PageServlets\StatisticsPageServlet.cs:103

[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:344
   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() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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