Monday, August 26, 2013

Outlook crashing - An unhandled win32 exception occured in outlook.exe [1664], visual studio Just-in-Time Debugger

Outlook crashing with the following error:

An unhandled win32 exception occured in outlook.exe [1664]
visual studio Just-in-Time Debugger

1. Enabling or disabling Just-In-Time debugging

You can enable or disable Just-In-Time debugging from the Options dialog box.

To enable or disable Just-In-Time debugging

  1. Open Microsoft Visual Studio
  2. On the Tools menu, click Options.
  3. In the Options dialog box, select the Debugging folder.
  4. In the Debugging folder, select the Just-In-Time page.
  5. In the Enable Just-In-Time debugging of these types of code box, select or clear the relevant program types: Managed, Native, or Script.
    To disable Just-In-Time debugging, once it has been enabled, you must be running with Administrator privileges. Enabling Just-In-Time debugging sets a registry key, and Administrator privileges are required to change that key.
  6. Click OK.

2. To disable Just-In-Time debugging by editing the registry

  1. On the Start menu, search for and run regedit.exe
  2. In the Registry Editor window, locate and delete the follow registry keys:
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger

    •  
  3. If your computer is running a 64-bit operating system, delete the following registry keys also:
    • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
    • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger
  1. Take care not to accidentally delete or change any other registry keys.
  2. Close the Registy Editor window.