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 38: 
Line 39:             TAL.dt = TAL.sTaalByLanguage(sLanguage.ToUpper(), iPartijIDBeheerder)
Line 40:             TAL.dr = TAL.dt.Rows(0)
Line 41: 
Line 42:             sLanguage = TAL.dr.Item("sCulture")

Source File: D:\internet\tokceltruckstop\App_Code\BasePage.vb    Line: 40

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\tokceltruckstop\App_Code\BasePage.vb:40
   ASP.bevestiging_aspx.__BuildControlTree(bevestiging_aspx __ctrl) in D:\internet\tokceltruckstop\Bevestiging.aspx:1
   ASP.bevestiging_aspx.FrameworkInitialize() in D:\internet\tokceltruckstop\Bevestiging.aspx.vb:912307
   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