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 7811241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:05:17+00:00 2026-06-02T04:05:17+00:00

If I write this code protected void Page_Load(object sender, EventArgs e) { Page_Load(sender, e);

  • 0

If I write this code

  protected void Page_Load(object sender, EventArgs e)
    {
        Page_Load(sender, e);
    }

I get the an Error (endless recursion):

enter image description here

and the w3wp.exe process is terminated from task manager.

Fine…

however if i do:

throw new ApplicationException(); //or SystemException();

it appears in just a regular exception page. ( w3wp.exe is still up).

questions :

  • what kind of exceptions causing the w3wp.exe to shutdown ?
  • what kind of exceptions causing the Application Pool to shutdown ?

p.s.
according to what ive just written , please think about the following scenario :
i can write a web page , host my site in a farm of sites , and i can terminate the whole w3wp.exe process by creating recursion ….. ( also others will have trouble)…

Can you please answer my questions ?

thanks.

  • 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-02T04:05:20+00:00Added an answer on June 2, 2026 at 4:05 am

    This is most likely the famous StackoverflowException. It’s caused by an infinite loop since you’re calling the method Page_Load again and again.

    From MSDN:

    In prior versions of the .NET Framework, your application could catch
    a StackOverflowException object (for example, to recover from
    unbounded recursion). However, that practice is currently discouraged
    because significant additional code is required to reliably catch a
    stack overflow exception and continue program execution.

    Starting with the .NET Framework version 2.0, a StackOverflowException
    object cannot be caught by a try-catch block and the corresponding
    process is terminated by default
    . Consequently, users are advised to
    write their code to detect and prevent a stack overflow. For example,
    if your application depends on recursion, use a counter or a state
    condition to terminate the recursive loop. Note that an application
    that hosts the common language runtime (CLR) can specify that the CLR
    unload the application domain where the stack overflow exception
    occurs and let the corresponding process continue. For more
    information, see ICLRPolicyManager Interface and Hosting Overview.

    You may want to have a look at this answer:

    https://stackoverflow.com/a/4802309/284240

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

Sidebar

Related Questions

In my SiteMaster.cs file I have the following snippet: protected void Page_Load(object sender, EventArgs
I'm trying to write this code using mostly arrays. I'm trying to get Correct
i write this code in main.java ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); try{ HttpClient httpclient
would someone please write this code: this.Loaded += (s, e) => this.loaded = true;
How can I write this code more cleanly/concisely? /// <summary> /// Creates a set
how can i write this code from aspx page in code behind? <a href=skype:MySkype?call><img
I'm just wondering if there is a best case to write this code: $('#set_duration_30').click(function(event)
How to write this JavaScript code without eval? var typeOfString = eval(typeof + that.modules[modName].varName);
Is there a way to write this C/C++ code in Python? a = (b
I have this code to write to a file, it works perfect but I

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.