Server Error in '/GATLWeb' Application.

Index was outside the bounds of the array.

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: Index was outside the bounds of the array.

Source Error:


Line 416:
Line 417:            sql = " select '0' p_codeval,'---Select---' p_desc from dual union"
Line 418:            If Trim(Splitstr(5)) = "TRGI0" Then
Line 419:                sql = " select '0' p_codeval,'---Select---' p_desc from dual union"
Line 420:                sql = sql & " select p_codeval, p_desc from paramast where p_codetype='CAT' and delflag='N' AND P_CODEVAL NOT IN ('ES') order by p_desc "

Source File: E:\Application\ERS\GATLWEB\pages\web\frmtoken_generation.aspx.vb    Line: 418

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   PAGES_frmtoken_generation.Page_Load(Object sender, EventArgs e) in E:\Application\ERS\GATLWEB\pages\web\frmtoken_generation.aspx.vb:418
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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