Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8628233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:29:09+00:00 2026-06-12T08:29:09+00:00

What would cause the Visual Studios debugger to ignore the breakpoints in the code

  • 0

What would cause the Visual Studios debugger to ignore the breakpoints in the code behind of an aspx page and throw a null exception from a null session variable instead?

I’ve been trying to debug a session variable timeout issue but every time I run the debugger the null exception gets thrown instead of hitting the breakpoints (I have break points on page load as well as the button that should be triggering the postback).

Any ideas?

EDIT:

_reportEntity is a accessor/mutator property that is saving to a session variable:

Session["_PD_AR_reportEntity"]

This variable is initialized in the Page_Load when the user first arrives at the page and then is updated at each postback. We are saving an LLBL generated entity class to the session variable. Before the debug issue I was trying to debug why our session variable was being lost after 20 minutes of inactivity from the user since we have a similar module using the same techniques, app pool, and timeout settings (1440 minutes) and it does not lose its session variable after 20 minutes.

if this is a UI issue I need to bring up that we are using telerik AJAX controls, we have a RadAjaxLOadingPanel for partial postbacks and a RadMultiPage to deal with our tabstrip.

Here’s the information from the Null being thrown:

Server Error in '/Project_Direct/Secure/Modules/AnalyticReports' Application.
--------------------------------------------------------------------------------


 Object reference not set to an instance of an object. 
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 
Line 2734:            {
Line 2735:                GridDataItem item = (GridDataItem)ddl.NamingContainer;
**Line 2736:                var foundAnalyte = _reportEntity.GetReportColumns.AsEnumerable().Where(x => x["Analyte"].ToString() == item["bndAnalyte"].Text).FirstOrDefault();**
Line 2737:                //string v = item["ParameterUnitsLookup"].Text;//ParameterUnits
Line 2738:                if (foundAnalyte == null) 

Stack Trace: 
[NullReferenceException: Object reference not set to an instance of an object.]
   Trihydro.ProjectDirect.Modules.AnalyticReports.TabView.ddlAnalyteUnit_PreRender(Object o, EventArgs e) in C:\TFSWorkspaceKEllington\Trihydro_IPortal\Modules\AnalyticReports\TabView.aspx.cs:2736
   System.Web.UI.Control.OnPreRender(EventArgs e) +11056781
   System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +41
   System.Web.UI.Control.PreRenderRecursiveInternal() +107
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3393



--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:29:10+00:00Added an answer on June 12, 2026 at 8:29 am

    I’m going to close this as I’m on new tasks now.

    I’m 90% sure that the underlying issue causing all of this is that our IIS 7 settings have our Idle-Timeout set to 20 minutes which is causing our session variable to die and cause our null issues which cause this behavior in the debugger. Thank you for your help in this matter JWJones.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any reason why printw() would cause a segmentation fault? Code is fine
Would the code bellow cause my code to leak? More specifically, am I responsible
I really would like to get a scrollbar for the page cause atm the
I want to make the debugger in Visual Studio 2010 stop at the exception
I am new to C# and wondering whether windbg or Visual Studio Debugger would
I must run Visual Studios 2008 as an administrator to compile legacy code I
So I am wondering what would cause it so that all events for the
Why/how does this create a seemingly infinite loop? Incorrectly, I assumed this would cause
What would possibly cause a 'git push' to try and commit to two branches?
Does dependency injection potentially cause large overhead? I would imagine so, especially if the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.