Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB.NET Debugging the Stack Trace

Posted on 2010-08-12
3
Medium Priority
?
841 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

721 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