Server Error in '/' Application.

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IndexOutOfRangeException: There is no row at position 0.
  at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
  at Database.GetArticleCategoryById(Int32 catId, String langCode)
  --- 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.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IndexOutOfRangeException: There is no row at position 0.
  at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
  at Database.GetArticleCategoryById(Int32 catId, String langCode)
  --- End of inner exception stack trace ---

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:


[SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IndexOutOfRangeException: There is no row at position 0.
   at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
   at Database.GetArticleCategoryById(Int32 catId, String langCode)
   --- End of inner exception stack trace ---]
   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +237812
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +273
   _240.awc5ws.articleCategories.ArticleCategoriesHandler.GetArticleCategoryById(String db, String langCode, Int32 categoryId) in C:\VSO\Sites\240-NewAntiquesSection\240\Web References\awc5ws.articleCategories\Reference.cs:114
   _240.Products.Page_Load(Object sender, EventArgs e) in C:\VSO\Sites\240-NewAntiquesSection\240\Products.aspx.cs:20
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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