Server Error in '/' Application.

There is no row at position 0.

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.IndexOutOfRangeException: There is no row at position 0.

Source Error:


Line 44: 
Line 45:             TAL.dt = TAL.sTaalByLanguage(sLanguage.ToUpper(), iPartijIDBeheerder)
Line 46:             TAL.dr = TAL.dt.Rows(0)
Line 47: 
Line 48:             sLanguage = TAL.dr.Item("sCulture")

Source File: D:\internet\merelvandekeer\App_Code\BasePage.vb    Line: 46

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2440285
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   BasePage.InitializeCulture() in D:\internet\merelvandekeer\App_Code\BasePage.vb:46
   ASP.bevestiging_aspx.__BuildControlTree(bevestiging_aspx __ctrl) in D:\internet\merelvandekeer\Bevestiging.aspx:1
   ASP.bevestiging_aspx.FrameworkInitialize() in D:\internet\merelvandekeer\Bevestiging.aspx.vb:912308
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +52
   System.Web.UI.Page.ProcessRequest() +75
   System.Web.UI.Page.ProcessRequest(HttpContext context) +70
   ASP.bevestiging_aspx.ProcessRequest(HttpContext context) +46
   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