none
IIS Crash with Faulting application w3wp.exe, faulting module mscorwks.dll, version 2.0.50727.42 RRS feed

  • Question

  • The scenario is that, a .Net Webservice is making calls to C++ DLL (made from VC6 studio)

    This app works perfectly well for sometimes or over a period or for a high volume of hits and suddenly you see IIS crash along with service crash with the following error

    "Faulting application w3wp.exe, faulting module mscorwks.dll, version 2.0.50727.42"

    There is no pattern for this problem. The work around is to restart the IIS. 

     

    Can anybody tell me what could be the issue here?

    Friday, August 27, 2010 2:14 PM

Answers

  • > is making calls to C++ DLL

    Most likely a bug in your C++ code.  As you probably know, unmanaged code tends to fail less gracefully than manged code in terms of what exception information can be displayed.

    Consider collecting a crash dump and analyzing it.  For some reason, a lot of Windows developers do not know about this or perhaps think that only Unix systems can do this kind of thing.  All developers should learn how to do this.  Now is as good a time as any. :)

    http://blogs.iis.net/webtopics/archive/2009/11/25/how-to-collect-a-crash-dump-of-an-iis-worker-process-on-iis-7-0-and-above.aspx

    You can analyze dumps using WinDbg or by using File, Open, Project/Solution to load a dump file into Visual Studio.

    • Marked as answer by SamAgain Friday, September 3, 2010 3:38 AM
    Saturday, August 28, 2010 3:29 PM