From: Big Daddy on
If you bring up the properties dialog in the IIS console, you can
disable the settings that cause an app domain to be recycled (either
periodically or because of idle inactivity):

However, I want to be able to change these setting in an installation
package for our software. Is there a way these can be changed
programmatically? Maybe a registry hack?

thanks in advance,