locked
Thread.Abort cause IIS w3wp.exe crash RRS feed

  • Question

  • Hi,

    current we encounter a strange crash in IIS w3wp.exe process. in application.PreRequestHandlerExecute handle, if there is a ThreadAbort exception, the whole w3wp.exe will crash.


    my environment: windows 2012 R2 + .Net v4.0.30319

    i searched internet. find there are many topic to discuss this problem: that ThreadAbort exception cause w3wp.exe to crash. and Microsoft provide the update.  e.g: https://stackoverflow.com/questions/32335020/thread-abort-in-asp-net-app-causes-w3wp-exe-to-crash

    but that update didn't apply to Windows 2012.  

    i can avoid this by remove finally hanlder (try.catch.finally) in application.PreRequestHandlerExecute handle. but i don't know why. normally ThreadAbort exception will not crash a process. Does anyone know some information about it? Thank you very much.

    • Edited by Bard.Zhang Friday, October 23, 2020 7:19 AM
    • Moved by CoolDadTx Friday, October 23, 2020 3:48 PM ASP.NET related
    Friday, October 23, 2020 7:05 AM

All replies

  • This forum is for C#-specific questions only. Questions related to ASP.NET and using IIS should be posted in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Friday, October 23, 2020 3:48 PM