Index was out of range. Must be non-negative and less than the size of the collection.<br>Parameter name: index

Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

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.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

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:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +69
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterPlayerSummaryResponse.Write29_DoublesGameDto(String n, String ns, DoublesGameDto o, Boolean isNullable, Boolean needType) +831
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterPlayerSummaryResponse.Write30_BaseGameDto(String n, String ns, BaseGameDto o, Boolean isNullable, Boolean needType) +145
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterPlayerSummaryResponse.Write31_TeamMatchDto(String n, String ns, TeamMatchDto o, Boolean isNullable, Boolean needType) +888
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterPlayerSummaryResponse.Write60_PlayerSummaryResponse(String n, String ns, PlayerSummaryResponse o, Boolean isNullable, Boolean needType) +266
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterPlayerSummaryResponse.Write61_PlayerSummaryResponse(Object o) +124

[InvalidOperationException: There was an error generating the XML document.]
   System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id) +640
   System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o, XmlSerializerNamespaces namespaces) +78
   System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o) +16
   Com.BinaryBracket.CacheFragments.XmlFragment.Add(Object obj, String rootElementName) in C:\BinaryBracket\Repos\core\Source\CacheFragments\XmlFragment.cs:308
   Com.BinaryBracket.CacheFragments.XmlFragment.Add(Object obj) in C:\BinaryBracket\Repos\core\Source\CacheFragments\XmlFragment.cs:282
   Com.BinaryBracket.BowlsResults.Web.RetrievalService.Statistics.PageServlets.StatisticsPageServlet.GetPlayerSummary(Int32 playerID) in C:\BinaryBracket\Repos\platform-v1\Web\Source\RetrievalService\Statistics\PageServlets\StatisticsPageServlet.cs:153

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   Com.BinaryBracket.Servlets.ServletHandler.InvokeServletMethod() in C:\BinaryBracket\Repos\core\Source\Servlets\ServletHandler.cs:344
   Com.BinaryBracket.Servlets.ServletHandler.GetServletMethodResponseXml() in C:\BinaryBracket\Repos\core\Source\Servlets\ServletHandler.cs:468
   Com.BinaryBracket.Servlets.ServletHandler.ExecuteMethod() in C:\BinaryBracket\Repos\core\Source\Servlets\ServletHandler.cs:392
   Com.BinaryBracket.Servlets.ServletHandler.ExecuteRequest() in C:\BinaryBracket\Repos\core\Source\Servlets\ServletHandler.cs:109
   Com.BinaryBracket.Servlets.ServletHandler.ProcessRequest() in C:\BinaryBracket\Repos\core\Source\Servlets\ServletHandler.cs:93
   Com.BinaryBracket.Servlets.PageServletHandler.ProcessPageRequest(ServletContext context, String pageUri) in C:\BinaryBracket\Repos\core\Source\Servlets\PageServletHandler.cs:70
   Com.BinaryBracket.Servlets.PageServletHandler.ProcessRequest(HttpContext context) in C:\BinaryBracket\Repos\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.4718.0