Title: Can you bounce App Pool from within w3wp.exe itself?
Tags: .net;iis-7;iis-6
Question: Easy as that. Any security considerations? IIS6, IIS7? Or just write something to the config from the same process to trigger the recycle?

Here is the accepted answer: Another way of recycling the application pool without having to write to the config file would be:
HttpRuntime.UnloadAppDomain();
HttpRuntime.UnloadAppDomain Method


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 2.5', 'CreationDate': '2011:00:04/01/11', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<.net><iis-7><iis-6>', 'Title': 'Can you bounce App Pool from within w3wp.exe itself?', 'ViewCount': 248, 'id': 5508756, 'user_AboutMe': '', 'user_AccountId': 66431.0, 'user_DisplayName': 'dexter', 'user_Reputation': 6843.0, 'user_Views': 363.0, 'user_id': 194881.0}}