I'm working with an Access database that holds data for an events calendar (Date, Time, Event, and Location). Some of the larger locations can be divided-off to form 2 or more smaller locations. I am just adding the code
to indicate that a "Parent" room is not available whenever it's "Child" rooms are booked, and that a "Child" room is not available if the "Parent" is booked.
I'm using quotation marks because these are the data names, but they bear no other relationship to Parent-Child data.
On certain dates, I am getting a
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index error, although the query runs fine in Access. This is a display-only query.
It only errors-out on certain dates and I cannot find anything unusual in the data that might be causing it. Breakpoints are showing that the code is executing. The code that finds the "Parent" and "Child" rooms is straightforward.
Another generic message that does not leave me a lot of clues on how to find the problem! How would I debug this?
<Error and Stack Trace>
Specified argument was out of the range of valid values. Parameter name: index
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: Specified argument was out of the range of valid values. Parameter name: index
Source Error:
Line 74: Protected Sub Bind_Data()
Line 75: gridtable.DataSource = Load_Data()
Line 76: gridtable.DataBind()
Line 77: End Sub
Line 78:
Stack Trace:
[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index]
System.Web.UI.ControlCollection.get_Item(Int32 index) +58
System.Web.UI.WebControls.TableCellCollection.get_Item(Int32 index) +22
rw.BaseSchedule.GetValueSpan(Int32 cellValueIndex, Int32 titleIndex) +121
rw.BaseSchedule.SplitTitle(Int32 titleIndex, Int32 firstCellIndexToSplit, Int32 lastCellIndexToSplit) +1118
rw.BaseSchedule.AddData(DataView dvView) +617
rw.BaseSchedule.CreateControlHierarchy(Boolean useDataSource) +399
rw.BaseSchedule.OnDataBinding(EventArgs e) +55
rw.BaseSchedule.DataBind() +10
child.Bind_Data() in E:\Working Storage\html\vrs\prototype\tests\code\childgrid.aspx.vb:76
child.Change_Date(Object sender, EventArgs e) in E:\Working Storage\html\vrs\prototype\tests\code\childgrid.aspx.vb:94
System.Web.UI.WebControls.Calendar.OnSelectionChanged() +118
System.Web.UI.WebControls.Calendar.SelectRange(DateTime dateFrom, DateTime dateTo) +246
System.Web.UI.WebControls.Calendar.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +671
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1281
T. R. Tinker
Participant
783 Points
301 Posts
Help with Specified Argument Out of Range
Jun 27, 2006 01:18 PM|LINK
I'm working with an Access database that holds data for an events calendar (Date, Time, Event, and Location). Some of the larger locations can be divided-off to form 2 or more smaller locations. I am just adding the code to indicate that a "Parent" room is not available whenever it's "Child" rooms are booked, and that a "Child" room is not available if the "Parent" is booked.
I'm using quotation marks because these are the data names, but they bear no other relationship to Parent-Child data.
On certain dates, I am getting a System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index error, although the query runs fine in Access. This is a display-only query.
It only errors-out on certain dates and I cannot find anything unusual in the data that might be causing it. Breakpoints are showing that the code is executing. The code that finds the "Parent" and "Child" rooms is straightforward.
Another generic message that does not leave me a lot of clues on how to find the problem! How would I debug this?
<Error and Stack Trace>
Specified argument was out of the range of valid values. Parameter name: index
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.
</Error and Stack Trace>
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index
Source Error:
Stack Trace: