Error Occurred in Deployment step 'Recycle IIS Application Pool'

Alex Varghese picture Alex Varghese · Jan 22, 2014 · Viewed 48.4k times · Source

We have more than 3 developers working on a single solution file. Because of this, we cannot add them all in the site collection administrator menu.

When I deploy with administrator credentials in Visual Studio, I am able to successfully deploy to the particular SharePoint Application. When I login with any of these users, I am not able to. It gives me the below error:

Error occurred in deployment step 'Recycle IIS Application Pool': 
<nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied

We have given administrative rights for these users' login to the Active Directory.

What can we do to resolve this issue?

Answer

Alex Varghese picture Alex Varghese · Jan 23, 2014

I tried all the possible solutions with Active Directory, IIS Authentication and finally was able to fix the issue just by doing the below. Hope this will help you in similar kind of issue.

  1. Do a IIS reset
  2. Check if IIS is resetting.
  3. If it is not, then disable UAC from control panel and IIS reset will work.
  4. Go to Central Administration site
  5. Navigate to the Manage Web Applications page
  6. Click on the web application that hosts the site you are trying to deploy to
  7. Click the User Policy ribbon item.
  8. Add your windows account to the list of users with the Full Control permission.

It worked for me!