IIS Access denied during deploy of solution

When trying to deploy my SharePoint 2010 solution via Visual Studio 2010 I got the following error. Error occurred in deployment step ‘Recycle IIS Application Pool’: <nativehr>0x80070005</nativehr><nativestack></nativestack> Turned out that I forgot to add my user to the “Site Collection Administrators”. Go to “Site Actions” of the root site , add your user to the […]