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

  • Home
  • SEARCH
  • 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 7061373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:27:58+00:00 2026-05-28T04:27:58+00:00

On rare occasion I get the following error and stack trace when someone access

  • 0

On rare occasion I get the following error and stack trace when someone access one of my ASP.NET applications:

Error: Object reference not set to an instance of an object.

Stacktrace: at MyApp.MyDefaultPage.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

OK a few things here. MyApp.MyDefaultPage does not have a defined Page_Init of my own so there is no additional code (I understand the event still fires). Also there is no base class code which it would run through either in a Page_Init event, so I am at a loss from where this is occuring.

The only thing I could even gather is I have a Global.asax exception handler code in the Application_Error event, but the 1st thing I do before accessing any objects is make sure they are Not Nothing before trying to access (to prevent any errors).

Any clue as to what could cause this sporadically?

  • 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-05-28T04:27:58+00:00Added an answer on May 28, 2026 at 4:27 am

    Are you using any of the Ajax controls?

    If so make sure your scriptmanager tag is the first item after your form tag

    also give a try to setting EnableEventValidation=”false” for the page.

    It could be caused by user interaction with the page before the page is fully loaded.

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

Sidebar

Related Questions

It's rare that I hear someone using Inversion of Control (Ioc) principle with .Net.
I support a .NET 2.0 Winforms application that is fairly widely deployed. On rare
I have two entities that usually have one-to-many relationship, but in rare cases should
One of the stated reasons for knowing assembler is that, on occasion, it can
I want to access the call stack at runtime in a Native C++ application.
I'm trying to use this chart generator from http://htmldrive.net/items/show/792/Rare-Accessible-charts-using-jQuery-and-HTML5.html Here's the code which loads
This is one of those rare occasions that I have had to use conditional
this is rather a very rare question and quite an unusual one.. In my
We're building web applications in Python and it isn't rare to require 3 or
Note that the following are examples of the rare cases where dotNet reflector does

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.