Solved

VB.NET Debugging the Stack Trace

Posted on 2010-08-12
3
826 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now