Archive for November, 2009

The interesting app_offline.htm file

November 12, 2009 Leave a comment

For those that’s still in the dark about this cool feature, here’s the lowdown on it.


If you put a app_offline.htm file inside your application, on the next request, ASP.NET will shutdown the app domain and return the contents of the file in response to all dynamic requests. This way, you can easily take down your site for maintenance and updates and then bring it right up by deleting the file once you are done!

Categories: ASP.NET, Development

Disabling the program has stopped working promot

November 12, 2009 Leave a comment

Ever so often, especially when you are using interop inside .net applications, you may trigger some code which will totally crash your system.

This prompt usually does not help in any way whatsoever.

So here’s how to take it out permanently.

1. Change HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Windows\ErrorMode from 0 to 2

2. Change HKEY_CURRENT_USER\Software\ Microsoft\Windows\Windows Error Reporting\DontShowUI from 0 to 1

Categories: Development