"index out of range" after deletinga step and then licking next

1 Answer 86 Views
Wizard
Karl
Top achievements
Rank 1
Iron
Karl asked on 22 Aug 2023, 01:45 PM

I try to inplement this : https://demos.telerik.com/aspnet-ajax/wizard/application-scenarios/add-remove-wizardsteps/defaultvb.aspx

This works fine in a test project. I am able to delete a step and every thing works fine.

 

But on my target project, after deleting a step: Step is deleted. all looks fine. But each time i click on "next" or on another step header i recieve error message.. In errormessage i see this has nothing to do with my code.

Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
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: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +12906457
   Telerik.Web.UI.GridColumnCollection.System.Web.UI.IStateManager.LoadViewState(Object savedState) +107
   Telerik.Web.UI.GridTableView.LoadStructureState(Object SavedStructure) +140
   Telerik.Web.UI.RadGrid.LoadTableViewStructure(IEnumerator stateEnumerator, GridTableView tableView) +52
   Telerik.Web.UI.RadGrid.LoadViewState(Object savedStateObject) +146
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +274
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Page.LoadAllState() +456
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2236


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

 

 

I think it is the wizard. But it might be some othe stuff that is on the page.

I am not able to find what it is...

Any suggestion ?

 

Doncho
Telerik team
commented on 25 Aug 2023, 07:55 AM

Hi Karl,

Thank you for sharing the stack trace! Yet the error is too generic and it is hard to understand what actually is the problem here.

To be able to assist you with this I would need some additional information about the current setup. Could you please share the markup declaration of the RadWizard along with all the code relevant to it (C#/VB and JavaScript)?

1 Answer, 1 is accepted

Sort by
0
Karl
Top achievements
Rank 1
Iron
answered on 25 Aug 2023, 02:47 PM
I know the error is too generic. I will try to clean  up my  page so i can share the code.. 
Tags
Wizard
Asked by
Karl
Top achievements
Rank 1
Iron
Answers by
Karl
Top achievements
Rank 1
Iron
Share this question
or