Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any setting in IIS 7.5 to prevent it from recycling the app pool when a default document is changed?

IIRC this didn't happen in IIS 6 and I want that behavior back.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

This is caused by delegated configuration. In IIS7+, the settings can be written to web.config (and they do by default). Touching web.config causes an appdomain recycle.

You have a couple solutions. One is to turn of delegated configuration, but that comes with considerations, like ensuring that you don't already have settings in your web.config files, which will cause the sites to break.

Another option is to use Configuration Editor or a text editor to apply your settings to applicationHost.config instead of web.config.

To see further information you can watch week 17 of my video series on IIS.

share|improve this answer
    
Scott, Could he use "disallowRotationOnConfigChange" on the appPool? –  Chris Anton Sep 29 '11 at 21:02
1  
Chris, that's a good question. disallowRotationOnConfigChange is for app pool settings only and not for web.config, so an appdomain recycle still occurs even if disallowRotationOnConfigChange is applied. There is a File Change Notification (FCN) registry change that can prevent web.config changes from causing an appdomain recycle, but then the changes themselves won't be picked up either until the app pool is manually recycled, so I don't believe that would be the solution for this situation. –  Scott Forsyth - MVP Sep 30 '11 at 13:33
    
Got it! Thanks, and keep up the video series!... Just watched week 37 last night ;-) –  Chris Anton Sep 30 '11 at 14:04
    
Thanks Chris! I always appreciate encouraging feedback like that. –  Scott Forsyth - MVP Sep 30 '11 at 19:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.