Solved

VB.NET Debugging the Stack Trace

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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 …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

615 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