If you are deploying a .NET website to a Windows server, you might encounter an extremely annoying popup. When an unhandled error occurs, Windows will show a popup stating an error occurred. This popup requires human interaction to close (seems kinda stupid to me). Fortunately there is an easy fix. To disable this popup, simply follow the steps below.
Delete the following registry keys.
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger