locked
w3wp crash for access violation exception RRS feed

  • Question

  • User-87466694 posted

    Hello guys, i'll try to be brief and concise, 

    I am having trouble with this exception in my Web App ASP.NET using NetFramework4, i have Debug Diagnostic Tool running on the w3wp.exe processes and at certain times suddenly this exception rises.

    Here are screenshoots of the error, i hope you can give some clue about what to look because i've already checked many things and increased performance but i can't get rid of this exception.

    http://imgur.com/a/sedsw

    P
    revious Exception report continuation: http://imgur.com/a/zfeLw

    Thanks everyone!

    Tuesday, June 13, 2017 2:34 PM

All replies

  • User1967761114 posted

    Hi irq20xdfr,

    According to your description, it seems the exception couldn’t process by the try catch statements.

    I find there had an article is similar as yours.

    https://msdn.microsoft.com/en-us/magazine/dd419661.aspx#one

    As the article said, try to do it as the following steps:

    (1) Recompile code with .NET3.5 and run your site in .Net 4.0

    (2) Add the following configuration in web.confitg at configuration/runtime.

    <legacyCorruptedStateExceptionsPolicy enabled="true" />

    (3)Add [System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions] on the method which occurred the exception, then you could process the execption by the try catch statements.

     

    If you have any other questions, please feel free to contact me any time.

    Best Regards

    Even

    Wednesday, June 14, 2017 2:19 AM
  • User-87466694 posted

    Hello EvenMa,

    Thanks for your answer...

    But, wouldn't be that dangerous being that catching an access violation exception hasn't many was to recover of?

    I mean, what would happened if i catch it and do nothing? Can be dangerous?

    Thanks in advance.

    Wednesday, June 14, 2017 4:59 PM
  • User1967761114 posted

    Hi irq20xdfr,

     what would happened if i catch it and do nothing? 

    If you caught the exception, that’s mean there has some wrong with your code, you could process the exception, such as record the exception detail of log, give some friendly prompt to user or ignore the exception, if you do nothing with the exception, that might be has anyone know the exception had been occurred when some feature in your system is running abnormal.

    Can be dangerous?

    I’m unsure because of that depends on your code context.

    For more details about handle exception, you could refer to the following link.

    https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/exception-handling-statements

     

    If you have any other questions, please feel free to contact me any time.

    Best Regards

    Even

    Friday, June 16, 2017 4:25 AM
  • User-87466694 posted

    OK, right now i don't have problem with the catching, ill let you know.

    Another question, in other forum someone gave this advice but i don't completely know how to do that.

    "So you have to check your code. In IIS. except set the .net  4.0 for IIS application pool, you could only enable 32-bit application in application pool advanced setting and grant permission for application pool."

    Could you help me please?

    Thanks!

    Saturday, June 17, 2017 5:25 AM
  • User1967761114 posted

    Hi irq20xdfr,

    There had an article about the IIS application pool, you could refer to the following link.

    https://technet.microsoft.com/en-us/library/cc735247(v=ws.10).aspx

    irq20xdfr

    you could only enable 32-bit application in application pool advanced setting "

    That’s mean change the configuration to make your site run in 32-bit mode

    For more details about this, you could refer to the following link.

    https://help.webcontrolcenter.com/kb/a1114/how-to-enable-a-32-bit-application-pool-in-iis-7-dedicated-vps.aspx

    irq20xdfr

    grant permission for application pool

    That’s might mean change the identity of the application pool.

    For more details about this, you could refer to the following link.

    https://docs.microsoft.com/en-us/iis/manage/configuring-security/application-pool-identities#configuring-iis-application-pool-identities

     

    If you have any other questions, please feel free to contact me any time.

    Best Regards

    Even

    Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Monday, June 19, 2017 6:14 AM
  • User-87466694 posted

    Ok thank you so much for the information.

    Just one thing, how changing the user of the Application Pool can help to solve my problem?

    Regards,

    Monday, June 19, 2017 3:09 PM
  • User1967761114 posted

    Hi irq20xdfr,

    I’m unsure change the identity of the application pool could solve this problem.

    However, you could try to change the identity as administrator or LocalSystem(default is ApplicationPoolIdentity).

     

    If you have any other questions, please feel free to contact me any time.

    Best Regards

    Even

    Tuesday, June 20, 2017 6:42 AM