Server Error in '/' Application.

'dlYear' has a SelectedIndex which is invalid because it does not exist in the list of items.
Parameter name: value

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.ArgumentOutOfRangeException: 'dlYear' has a SelectedIndex which is invalid because it does not exist in the list of items.
Parameter name: value

Source Error:


Line 117:    Public Sub dlYear_Update()
Line 118:
Line 119:        dlYear.SelectedIndex = Session("RaceYear") - 2008
Line 120:
Line 121:    End Sub

Source File: h:\root\home\mapei09-001\www\usac2020\usac.master.vb    Line: 119

Stack Trace:


[ArgumentOutOfRangeException: 'dlYear' has a SelectedIndex which is invalid because it does not exist in the list of items.
Parameter name: value]
   System.Web.UI.WebControls.ListControl.set_SelectedIndex(Int32 value) +2752853
   System.Web.UI.WebControls.DropDownList.set_SelectedIndex(Int32 value) +10
   usac3.dlYear_Update() in h:\root\home\mapei09-001\www\usac2020\usac.master.vb:119
   usac3.Page_Load(Object sender, EventArgs e) in h:\root\home\mapei09-001\www\usac2020\usac.master.vb:75
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   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