What exceptions can Asp.net do?

If I write this code

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

I get an error (infinite recursion):

enter image description here

and the process w3wp.exeends with task manager.

Fine ...

however, if I do:

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

it appears on a regular exception page. (w3wp.exe is still working).

questions:

  • What exceptions cause w3wp.exe to stop ?
  • What exceptions lead to disabling Application Pool ?

ps in accordance with what has just been written, think of the following scenario: I can write a web page, host my site in a site farm, and I can end the whole w3wp.exe process by creating a recursion ..... (also in others will have problems) ...

Can you answer my questions?

thank.

+3
3

, , StackoverflowException. , Page_Load.

MSDN:

.NET Framework StackOverflowException (, ). .

.NET Framework 2.0, StackOverflowException try-catch . , , . , , . , , (CLR), , CLR , . . ICLRPolicyManager .

:

fooobar.com/questions/248840/...

+1

. , , . , - .

0

to add the answers that are available alrdy. you cannot bring down the whole process because each website on the server runs in a separate AppDomain. so if ur code misbehaves only ur appdomain wud be killed.

-3
source

All Articles