I have an ASP.NET MVC 2 site running under IIS7.
The app has its own .NET 4.0 App Pool running under a specific user account, and that account has "Full Control" permissions on the root folder and all sub-folders of the site in question, because we do funky things with file I/O, and it is required.
After setting up 1-Click Publish successfully between Visual Studio 2010 and the W2K8 server, every time I publish a new revision of the site, the security permissions for my specific user account mentioned above are reset to "Read" and my application crashes.
When I go back to the server and re-enlist "Full Control" I'm back in business again.
How do I get it to work correctly the first time so I don't need to constantly update user permissions?