Solved

VB.NET Debugging the Stack Trace

Posted on 2010-08-12
3
836 Views
Last Modified: 2012-05-10
Hello,

I am having some real trouble debugging an issue in one of my applications.  I have a radiobutton list control where I bind Items at page load.  The Radio Button List has AutoPostBack="True".  When the user clicks on this all it does is hide or unhide a hides a Panel with more controls.

However when I click on the radio button selection I get the following error

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length

Stack Trace:

[ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length]
   System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +7493051
   EO.Web.Internal.StateDataReader.ReadString() +46
   EO.Web.Internal.fj.a(String A_0) +266
   EO.Web.Internal.fj.a(String A_0) +96
   EO.Web.Internal.br.a(String A_0) +117
   EO.Web.Internal.br.a(String A_0, String A_1) +747
   EO.Web.Internal.br.a(String A_0, String A_1, String A_2) +52
   EO.Web.Internal.br.b(String A_0, String A_1) +7
   EO.Web.Internal.bu.l() +68
   EO.Web.WebControlBase.a(Object A_0) +74
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +183
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221
   System.Web.UI.Page.LoadAllState() +312
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1661
 
Now the issue I have is I cannot for the life of me step through the code (no breakpoints work), use a Try Catch to catch the error or find the LOCATION of where this index out of range is occurring.

My question is how DO i locate the problem because nothing seems to be working.

Please assist

Thank you.
0
Comment
Question by:lino_evolution
  • 2
3 Comments
 

Author Comment

by:lino_evolution
ID: 33423684
My problem is I cannot locate the problem, not the problem itself (since I cannot find it)  As soon as the index is changed on the radiobutton list I get the Error, and I cannot find what it is referring to as the problem.
0
 

Accepted Solution

by:
lino_evolution earned 0 total points
ID: 33424066
I narrowed the issue down, I found that If I remove the left hand navigation from the master page, the control will work.  So the problem is something to do with the controls in the left hand navigation.

What is located in the left hand nav is a EO.Web.DLL control called Treeview which is basixally a Treeview with text boxes.

However when I put breakpoints in the code on page load, it doesnt reach to that point.

So I am guessing it may have something to do with the DLL... is there a way to trace or debug the DLL?
0
 
LVL 41

Expert Comment

by:guru_sami
ID: 33424387
Check this guy:   EO.Web.Internal.StateDataReader.ReadString() +46
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question