When deploying a SharePoint farm solution from Visual Studio 2010 today using the Deploy command in the right-click context menu on the project node:
I got this error: Error occurred in deployment step 'Recycle IIS Application Pool': <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.
Turns out I wasn’t a site collection admin. Seems easy enough, but my local dev environment is a domain controller, and I hadn’t given the account I was logged onto the machine with access to the site.