Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Occurred in Deployment step 'Recycle IIS Application Pool'

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?

like image 612
Alex Varghese Avatar asked Jan 22 '14 08:01

Alex Varghese


3 Answers

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!

like image 103
Alex Varghese Avatar answered Sep 30 '22 14:09

Alex Varghese


adding user as a db_owner of the content database solved my problem

like image 39
Mahmoud Farahat Avatar answered Sep 30 '22 13:09

Mahmoud Farahat


The following worked for me:

  • Open the Sharepoint SQL Server database in Management Studio. The default name of it is SHAREPOINTWEB.
  • Under the Security folder, right click Logins and add the user who needs to deploy solutions. Grant them db_owner schema.
like image 42
mm201 Avatar answered Sep 30 '22 15:09

mm201