Which exception terminates process ? (iis's w3wp)

I've read this article trying to find : "Which exceptions terminates the entire process" ( iis , so basically the application pool terminates - w3wp.exe )

I already know (from my experience) that :

  • StackOverflow exceptions does terminates
  • Outofmemory exceptions also terminates
  • I already read Han's answer here which redirects to SSCLI20 source code where he gave an example of the code :

    TerminateProcess(GetCurrentProcess(), COR_E_STACKOVERFLOW);

    So I downloaded the SSCLI20 and searched for more of TerminateProcess(GetCurrentProcess()...

    And found those entries :

    在这里输入图像描述

    But I'm not sure that this is the whole list , and even if so - it is notvery clear.

    Question

    Where can I find the complete list of exceptions which terminates the process ?


    Found it.
    Richter to the rescue.

    The professional term is called : corrupted state exceptions (CSE'e)

    Corrupted State Exceptions (CSE): These are the exceptions which cannot be catched. Behind the scene Environment's FailFast method throws one of these exceptions. Hence, it cannot be catched and your application ends with an unhandled exception.

    From book :

    在这里输入图像描述

    more :

    在这里输入图像描述

    important :

    Note: Even with the attribute HandleProcessCorruptedStateExceptions, we cannot handle the following exceptions, for a given reason:

  • StackOverflowException - As this is a hardware failure and there is no more stack available for further processing (Thanks Abel Braaksma for pointing this out).

  • ExecutionEngineException - It occurs because of heap memory corruption and hence cannot be handled further (Reference).

  • Another helpful link via Abhishek Sur :

    http://dailydotnettips.com/2013/09/23/corruptedstateexceptions-in-net-a-way-to-handle/


    Use Microsoft's Debug Diagnostic Tool

    Take a look at http://support.microsoft.com/kb/919789/en-us which explains all the necessary steps in detail.

    Other exeptions which causes crash 1. Access Denied' exception 2. Bit rate throttling 3. InvalidOperationException other than the above which you posted.

    链接地址: http://www.djcxy.com/p/20644.html

    上一篇: 如何开始使用OAuth客户端证书来保护使用OWIN Oauth的WebApi?

    下一篇: 哪个异常终止进程? (iis的w3wp)