2 Dec 2013
I was working with a Claims Aware WebApplication and trying to deploy a simple solution using Visual Studio 2012. Though I am able to login to the Site, being a Site Collection Administrator etc., I faced an exception like,
Error occurred in deployment step 'Recycle IIS Application Pool': 0x80070005Access denied.
To overcome, I made sure that the Visual Studio is opened with Administrator privilege. Do that user is having all the necessary permission etc., Nothing helped. At last found that, there is a relation on the User Policy. Let us see them step by step.
Go to the Central Administration.
Select the WebApplication
Add your name. That’s it. Now, we are able to deploy from Visual Studio.