Recycle IIS Application Pool': 0x80070005 Access denied - Deploying sharepoint solution - IIS Restart issue
IIS Restart Issue "Access denied"
Quite often the developer will face a below issue while deploying the (WSP) solution in VS2010 running on Windows 2008. Especially if you have not logged in as administrator.
'Recycle IIS Application Pool': 0x80070005 Access denied
The root cause of the issue is
- You don't have IIS restart privilege on windows OS
- Even if you have it, you have not added your login account in to SharePoint sitecollection administrator.
To solve the issue
To see whether you have privilege or not, you can open a command prompt and type "IISReset".
If you able to restart, then it will restart successfully otherwise it will deny it. The reason is, Though you are in administrators group, windows 2008 will not run on the administrator privilege. Every time when you do an operation like IIS restart or Installation, it will prompt for UAC (User Account Control). You should accept the dialog box and elevate the privilege to run the operation.
Or you can right click the application whatever you want to run and click the menu option "Run as Administrator" which will solve the issue.
If you want to avoid UAC and directly run through you admin account then, go to Control panel -> Manage account -> Hide UAC
Second if you have all the privilege and still you are getting error in VS2010 as "'Recycle IIS Application Pool': 0x80070005Access denied, then you have to add your account in to site collection admin.
1) You can do this by going to sharepoint administration page.
2) Navigate to the site collection administration option
3) Add your name into site collection administrator as a second owner. SharePoint will allow a second owner for site colleciton
After adding it , now you can deploy the solution through VS 2010.
Happy coding.
Comments
Anonymous
November 24, 2012
Thanks for the post ... Saved my time ....Anonymous
June 26, 2013
Yes it working fine