Server Error in '/' Application.

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
  at System.Collections.Generic.List`1.get_Item(Int32 index)
  at bg401st.Service.Logic.HistoryLib.GetMemberById(Int32 Id) in g:\pleskvhosts\401bg.org\WebSite\App_Code\Logic\HistoryLib.cs:line 665
  at bg401st.Service.HistoryService.GetMemberById(Int32 id) in g:\pleskvhosts\401bg.org\WebSite\App_Code\History.cs:line 209
  --- End of inner exception stack trace ---

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.ServiceModel.FaultException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
  at System.Collections.Generic.List`1.get_Item(Int32 index)
  at bg401st.Service.Logic.HistoryLib.GetMemberById(Int32 Id) in g:\pleskvhosts\401bg.org\WebSite\App_Code\Logic\HistoryLib.cs:line 665
  at bg401st.Service.HistoryService.GetMemberById(Int32 id) in g:\pleskvhosts\401bg.org\WebSite\App_Code\History.cs:line 209
  --- End of inner exception stack trace ---

Source Error:


Line 6840:        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
Line 6841:        HistoryService.GetMemberByIdResponse HistoryService.HistoryServiceSoap.GetMemberById(HistoryService.GetMemberByIdRequest request) {
Line 6842:            return base.Channel.GetMemberById(request);
Line 6843:        }
Line 6844:        

Source File: g:\pleskvhosts\401bg.org\tmp\root\ef3a9c8a\203e68c3\App_WebReferences.ns81pn0r.1.cs    Line: 6842

Stack Trace:


[FaultException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at bg401st.Service.Logic.HistoryLib.GetMemberById(Int32 Id) in g:\pleskvhosts\401bg.org\WebSite\App_Code\Logic\HistoryLib.cs:line 665
   at bg401st.Service.HistoryService.GetMemberById(Int32 id) in g:\pleskvhosts\401bg.org\WebSite\App_Code\History.cs:line 209
   --- End of inner exception stack trace ---]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +159
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +353
   HistoryService.HistoryServiceSoap.GetMemberById(GetMemberByIdRequest request) +0
   HistoryService.HistoryServiceSoapClient.HistoryService.HistoryServiceSoap.GetMemberById(GetMemberByIdRequest request) in g:\pleskvhosts\401bg.org\tmp\root\ef3a9c8a\203e68c3\App_WebReferences.ns81pn0r.1.cs:6842
   HistoryService.HistoryServiceSoapClient.GetMemberById(Int32 id) in g:\pleskvhosts\401bg.org\tmp\root\ef3a9c8a\203e68c3\App_WebReferences.ns81pn0r.1.cs:6849
   History_Members_Details.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\401bg.org\WebSite\Main\History\Members\Details.aspx.cs:25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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