Just recently I came across an incident on which a customer saw the following exception in his Application Event Log:
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Event code: 3005
Event message: An unhandled exception has occurred.
Exception type: IndexOutOfRangeException
Exception message: Index was outside the bounds of the array.
I wondered how I would take memory dump for an exception on Windows Server 2003 x64 server. We cannot use Debug Diagnostics Tools on x64 bit machines.
I then came across a blog by Tess Are you aware that you have thrown over 40,000 exceptions in the last 3 hours? and this post gave me the answer. Though running the exact TrackCLR.cfg did not capture the exception dump. Here is the code that did the trick for me.
Perform the following steps:
Install Debugging Tools for Windows 64-bit Version from here.
Open command prompt and go to C:\Program Files\Debugging Tools for Windows or to the path where you installed Debugging Tools for Windows x64-bit.
Save the above code as TrackCLR.cfg.
Type the command: cscript.exe adplus.vbs –c TrackCLR.cfg.
Adplus will create ExceptionDump.dmp in C:\dumps folder.
Keep in touch..