Activating Office SharePoint Server Publishing Infrastructure - Access Denied

Search

Accessible SharePoint WebSites
Download ARF

Activating Office SharePoint Server Publishing Infrastructure - Access Denied

http://blog.thekid.me.uk

Following on from the previous post (the two are related) I recently had to activate the publishing infrastucture on a WSS v3 Teamsite. This had always worked before, but now I was getting ‘Access Denied’ when activating the ‘Server Publishing Infrastructure’.

This was due to my change in devlopment procedure. I always used to create development farms using Administrator for everything, but scince I found problems with feature activation I am developing using the Microsoft Guidelines for MOSS accounts. This means the AppPool account has limited permissions.

To solve the ‘Access Denied’ problem you need to elevate the permissions of the AppPool of the web application on which you are trying to activate the Publishing Infrastructure feature.

One way to achieve this is to temporarily change the AppPool of the web application…

1. Open IIS Admin.
2. Location the Web Site for your WSS web application.
3. Goto to the properties and select the ‘Home Directory’ tab.
4. Change the AppPool to be the same as Central Administration.
5. IISRESET
6. Activate the Publishing Infrastructure feature on your site.
7. Change to AppPool back to the original.
8. IISRESET.

This should allow you to enable the feature and use the publishing features within MOSS.

Posted by Vincent Rothwell on Monday, 5 Feb 2007 10:17  - 105 Comments
Orininally printed from http://thekid.me.uk - Copyright Vincent Rothwell 2007
 

Comments

Sunday, 27 Jul 2008 01:36 by Brad Cote
Just what I was looking for - and thanks for the link to the Microsoft Guidelines for MOSS accounts!

Sunday, 27 Jul 2008 01:36 by Eric VanRoy
Thank you for this information. It was exactly what I was looking for. This really does appear to be a Bug in the way it works and I am surprised that the original post was from Feb. 2007 (over a year agao). MS has put out a service pack and the issue still exists. You would have thought they would have fixed this one too. Once again, thank you,

Sunday, 27 Jul 2008 01:36 by John Barnes
Bloddy Sharepoint! Thanks lots.

Sunday, 27 Jul 2008 01:36 by Mycah
Great, worked for me, thanks. Brea, CA

Sunday, 27 Jul 2008 01:36 by Stanley
Unfortunately, this still does not work for me. I checked the server hosting the central adminstration and the front end server. I also tried all possible accounts. It still does not work for me. I checked the log. Here's what the log says: "Feature Activation: Threw an exception, attempting to roll back. Feature 'PublishingResources' (ID: 'aebc918d-b20f-4a11-a1db-9ed84d79c87e'). Exception: Microsoft.SharePoint.SPException: Provisioning did not succeed. Details: Failed to provision the scheduling job definitions. Page scheduling will not succeed. OriginalException: Access denied. ---> System.Security.SecurityException: Access denied. at Microsoft.SharePoint.Administration.SPPersistedObject.Update() at Microsoft.SharePoint.Administration.SPJobDefinition.Update() at Microsoft.SharePoint.Administration.SPWorkItemJobDefinition.Update() at Microsoft.SharePoint.Publishing.Internal.RootProvisioner.<>c__DisplayClass5.<AddSchedulingJobDefinitions>b__4() at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(... " Any idea on what's going on? Thanks a bunch! Stanley

Sunday, 27 Jul 2008 01:36 by Stanley
Unfortunately, this still does not work for me. I checked the server hosting the central adminstration and the front end server. I also tried all possible accounts. It still does not work for me. I checked the log. Here's what the log says: "Feature Activation: Threw an exception, attempting to roll back. Feature 'PublishingResources' (ID: 'aebc918d-b20f-4a11-a1db-9ed84d79c87e'). Exception: Microsoft.SharePoint.SPException: Provisioning did not succeed. Details: Failed to provision the scheduling job definitions. Page scheduling will not succeed. OriginalException: Access denied. ---> System.Security.SecurityException: Access denied. at Microsoft.SharePoint.Administration.SPPersistedObject.Update() at Microsoft.SharePoint.Administration.SPJobDefinition.Update() at Microsoft.SharePoint.Administration.SPWorkItemJobDefinition.Update() at Microsoft.SharePoint.Publishing.Internal.RootProvisioner.<>c__DisplayClass5.<AddSchedulingJobDefinitions>b__4() at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(... " Any idea on what's going on? Thanks a bunch! Stanley

Sunday, 27 Jul 2008 01:36 by Janardhan
Thanks This was very helpful to me thanks allot....

Sunday, 27 Jul 2008 01:36 by zed burton
It worked but I misread your instructions and changed the sharepoint 80 application pool identity to be the same as the Central Admin application pool identity. Now it seems permantly hosed up, even after changing it back - restarting IIS a couple of times, and rebooting the server twice! I will reinstall MOSS and just do what you suggested

Sunday, 27 Jul 2008 01:36 by Regina
Also you can accomplish the same thing by going into Computer Management\Groups\ and add the account you are using for your site application pool into WSS_ADMIN_WPG. After you do that resest IIS and you should be good to go. That way the change is permanent and you don't have to worry about this again.

Sunday, 27 Jul 2008 01:36 by jojhYNvyscBf
CDssxo

Sunday, 27 Jul 2008 01:36 by Rich
It is far easier to simply activate the feature via stsadm C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN> stsadm -o activatefeature -name PublishingResources -url http://website That worked for me, anyway.

Sunday, 27 Jul 2008 01:36 by Ofer
Thanks. Worked for me!

Sunday, 27 Jul 2008 01:36 by Hamza Farooq
Well thanks "Rich" i tried the Applicatio pool change way , but it didnt worked well for me. Istead my site started througing error of unauthorized access from IIS process. It was glitching but after running the stsadm -o activatefeature -name PublishingResources -url http://website command it worked well. Even thou after running the command i have to active the publishing infrastructure feature from site collection features myself but atleast the "access denied" error was gone and things started to workout for me.

Sunday, 27 Jul 2008 01:36 by Arpit
I am facing a problem during Activating "Office SharePoint Server Publishing Infrastructure" feature in a Basic Meeting site. I m getting Error : "Folders are not allowed for this list template.". But it works well for Team sites. If u have solution, please send me on my email id "goyal_arpit@yahoo.com". ThanX in Advance.

Sunday, 27 Jul 2008 01:36 by AL
many thanks for your excellent article peace

Sunday, 27 Jul 2008 01:36 by Fabio Bulgarelli
Hi, tks to you now my MOSS is working! regards!

Sunday, 27 Jul 2008 01:36 by Suniti
Got good help from here :)

Sunday, 27 Jul 2008 01:36 by Giri
Thanks a lot

Sunday, 27 Jul 2008 01:37 by John Seleem
This was helpful, Thanks

Sunday, 27 Jul 2008 01:37 by Rahul Tambe
It is such a nice help to me Thanks

Sunday, 27 Jul 2008 01:37 by Shailesh
Hi I am facing a problem during Activating "Office SharePoint Server Publishing Infrastructure" feature in a Meeting site. I m getting Error : "Folders are not allowed for this list template.". But it works well for Team sites. If u have solution, please send me on my email id "shaileshraj2005@yahoo.com". ThanX in Advance.

Sunday, 27 Jul 2008 01:37 by zedekiah
You're beautiful. Thanks

Sunday, 27 Jul 2008 01:37 by John
Very helpful worked like a charm. Thanks!!

Sunday, 27 Jul 2008 01:37 by Eric Blais
In my case it also solved the following problem : The trial period for this product has expired. at Microsoft.SharePoint.Publishing.CmsSecurityUtilities.EnsureEvaluationNotExpired() Thanks a million

Sunday, 27 Jul 2008 01:37 by Noel McDaid
Thanks a million!!! worked a treat!!!

Sunday, 27 Jul 2008 01:37 by Chanda
Thanks for this - very helpful!!!

Sunday, 27 Jul 2008 01:37 by Poornima Rao
Great help! Thanks!

Sunday, 27 Jul 2008 01:37 by Mike
Perfect! Thanks.

Sunday, 27 Jul 2008 01:37 by Luciano bonansco
Gracias Funciona

Sunday, 27 Jul 2008 01:37 by Daniel
Hi, This also provided me with more hair on my head. Spot on the mark! Thanks, Daniel Brown

Sunday, 27 Jul 2008 01:37 by Hugo Acosta
Thanks!!! Gracias !!!

Sunday, 27 Jul 2008 01:37 by Debbie Robinson
Hi, I am getting an "Value does not fall within the expected range." WHEN TRYING TO ACTIVATE Office SharePoint Server Publishing Infrastructure

Sunday, 27 Jul 2008 01:37 by mirko spirko
Thanks !!!! Hvala!!!!

Monday, 28 Jul 2008 09:14 by Edu BAuer
Great!... I love you!!!

Sunday, 10 Aug 2008 01:21 by

Friday, 5 Sep 2008 04:17 by Neorick Sorcia
Muchas Gracias, me haz salvado la vida... Thanks a lot!!!!!!!!

Thursday, 11 Sep 2008 12:31 by Keval Solanki
Good Job!

Wednesday, 17 Sep 2008 07:25 by zied
Thank you for this information. This was helpful. Perfect.

Wednesday, 17 Sep 2008 09:19 by Thiyagalingam Prashanth
Thanks for the post...It worked for me

Thursday, 2 Oct 2008 07:32 by Irene DE
Thanks for the stsadm command! Finally the message made clear that the feature depends on another feature with the name "PublishingPrerequisites" being activated. Now all is good. Peace and Blessings, Irene

Sunday, 5 Oct 2008 11:38 by Bobby G
Awesome post. I tried the stsadm command from Rich, C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN> stsadm -o activatefeature -name PublishingResources -url http://website worked fine, then I activated using the GUI and kaching, we're in the money!

Thursday, 16 Oct 2008 03:00 by Sachin Kainth
Spank you very much. This was most helpful.

Sunday, 19 Oct 2008 11:03 by Archana Kanth
Thanx for the information. It was of utmost help.

Tuesday, 28 Oct 2008 05:17 by Kurt
* FIXED * Just run the stsadm command that Rich suggests above...works fine (you'll still need to go into site administration - site features and manually enable it after you run the command however). No sense mucking up your sites by changing app pools back and forth..bad idea for a production site! SharePoint is tempermental enough already.

Monday, 3 Nov 2008 02:25 by François Souyri
Fixed for me too. Before paying with IIS I used STSADM as Rich, and now the Activate Feature button in my Site Collection Features is working. Bloody Sharepoint ! C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN> stsadm -o activatefeature -name PublishingResources -url http://website

Tuesday, 4 Nov 2008 11:01 by

Thursday, 6 Nov 2008 12:05 by Patrick Dozie
worked for me!!! Thanks Vincent

Friday, 14 Nov 2008 05:40 by Sandeep Khandelwal
Saved my day. Thank you.

Wednesday, 19 Nov 2008 02:24 by Ria
Hello: I am receiving "Folders are not allowed for this list template" when i try to enable publishing on the site collection...I have tried using the cmd line (stsadm) also but to no avail. Can anyone help?? Mail me at support@allaboutpak.com

Monday, 22 Dec 2008 03:30 by Pritesh
Great Article ..... Thanks buddy

Saturday, 10 Jan 2009 07:47 by Suresh
It was really useful for me ... Thanks lot ..........

Wednesday, 14 Jan 2009 12:27 by Deepthi
very useful....

Wednesday, 14 Jan 2009 04:24 by jimmie
i am getting an access denied message. This is a brand new installation of SBS 2008 and MOSS 2007 where i am the only user, any ideas why i get an access denied message when using the stsdam command?

Monday, 19 Jan 2009 04:22 by Kapiljith Rajappan
Solution is smart, keepup the good works...Thank you.

Tuesday, 20 Jan 2009 09:38 by tata
This work well for me. Thanks a lot.

Wednesday, 11 Feb 2009 04:06 by Christine
Awesome! Thanks so much! Leave it to SharePoint developers! So damn convoluted.

Saturday, 21 Feb 2009 01:40 by Bryce White
BINGO! Thanks for the post - this was exactly the solution I needed!

Monday, 23 Feb 2009 08:27 by denton
thanks alot, it's work with me very well but i want to know what is happend about this process or what is the idea to change the apppool to admin then back it again?? many thanks.

Tuesday, 3 Mar 2009 01:54 by Bobby Faruqi
stsadm worked . Thanks a lot for this information.

Friday, 6 Mar 2009 03:34 by minje
Hi, Our WSS Team site was migrated to MOSS2007.& bymistake I activated "Office SharePoint Server Publishing Infrastructure" feature & now i am trying to deactivate it but it is giving error.My big problem is that after that activation it created many changes I want to remove those.But how can i do it.Plz suggest me any solution. Thanks

Friday, 6 Mar 2009 03:42 by minje
If anyone have solution, please send me on my email id "jeenim.dhumal5@gmail.com". Thanks in advance...

Friday, 6 Mar 2009 03:44 by minje
Hi, Our WSS Team site was migrated to MOSS2007.& avoiding error of creating site from template bymistake I activated "Office SharePoint Server Publishing Infrastructure" feature & now i am trying to deactivate it but it is giving error.My big problem is that after that activation it created many changes I want to remove those.But how can i do it.Plz suggest me any solution. If anyone have solution, please send me on my email id "jeenim.dhumal5@gmail.com". Thanks in advance...

Tuesday, 10 Mar 2009 08:17 by Jitesh Shah
Thanks a lot.. it is really helpful block ...

Friday, 20 Mar 2009 05:33 by G
This worked GREAT! Thanks! I later found a more universal fix...Just add the account you use for administering SharePoint to the following Groups in Computer Management: (1) WSS_ADMIN_WPG (2) WSS_WPG

Monday, 30 Mar 2009 01:44 by Rob
Consider whenever changing the application pool accounts to go through central admin and use the Service Accounts section instead of IIS. Especially in a farm where it will create the timer job to be processed by all servers. Evaluate properly before deciding to add accounts intoe WSS_ADMIN_WPG and you are providing the account more access than necessary on the server. If you are looking for some elevation of permissions for application pool account, avoid adding it to WSS_ADMIN_WPG, or the farm Admin account. Rather try giving it permissions for its web application through policy for web application in central administration.

Thursday, 9 Apr 2009 09:03 by Rasheed
Thank you for this information. It is exactly what I am looking for.

Wednesday, 22 Apr 2009 07:16 by Christine
Adding the App Pool user to the WSS_ADMIN_WPG and WSS_WPG groups did not work for me and I wonder why not? Anyone?

Monday, 27 Apr 2009 05:00 by Ramprasad
I got a different problem. But the solution is the same. http://dotnetdreamer.com/2009/04/27/access-denied-activating-microsoft-office-server-publishing-infrastructure/

Wednesday, 29 Apr 2009 10:57 by Deepthi Ch
Hi Rothwell thanks for the post. It helped me lot and saved my time..

Sunday, 24 May 2009 08:14 by Premson Baby
Greate information. Thanks.

Tuesday, 2 Jun 2009 05:12 by

Tuesday, 2 Jun 2009 05:16 by Greg Burcus
I have an issue: when I activate Office SharePoint Server Publishing Infrastructure feature (using the GUI) we are loosing the capability to have the new created sites on the top tool bar. Can someone help me? If yes please send me an email at: gburcus@hotmail.com

Sunday, 5 Jul 2009 05:46 by OXjQlFYbKeiFRuAWRe
Pelo2Y bugagaga348934850934859038.txt:10:20

Monday, 6 Jul 2009 02:20 by chris makara
1sjbbz it�s nice post, specially newbie like me,

Tuesday, 7 Jul 2009 07:19 by Adrian Morales
Thanks : Work for me: :D >It is far easier to simply activate the feature via stsadm >C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN> stsadm -o activatefeature -name PublishingResources -url http://website >That worked for me, anyway.

Tuesday, 7 Jul 2009 11:49 by Char'ta Simpson
BijcmU nice job, very thanks�,

Friday, 10 Jul 2009 02:39 by Gerald Volpp
C1mZP8 Don�t you think he is a little late for the game?,

Friday, 10 Jul 2009 02:40 by Melvin Leaders
Great work �. Thanks for your ideas.,

Monday, 13 Jul 2009 05:14 by Fernando Rosario
R6YVyd it�s nice post, specially newbie like me,

Monday, 13 Jul 2009 05:14 by John Fleming
it�s nice post, specially newbie like me,

Monday, 13 Jul 2009 05:15 by dennis conrad
Thanks I�ll give that a go!,

Wednesday, 15 Jul 2009 01:24 by alin iliescu
thanks for the command! it worked great solved the issue

Thursday, 30 Jul 2009 04:22 by dianne tumino
Thanks I�ll give that a go!,

Thursday, 30 Jul 2009 04:22 by Lisa Losson
Good Thank you It�s very beautifully,

Thursday, 30 Jul 2009 04:23 by Tammy Ganer
Thanks I�ll give that a go!,

Thursday, 30 Jul 2009 04:23 by Jackie Patterson
Oh hell yeah� no graphical smilies around here.,

Friday, 7 Aug 2009 09:31 by FzfdGKUVhdHKuTniZka
tr2.txt;20;50

Monday, 10 Aug 2009 06:58 by xprt64
A very good article. Thanks.

Thursday, 13 Aug 2009 08:07 by Brajendu Kumar Das
Also you can activate the feature via stsadm......... C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN> stsadm -o activatefeature -name PublishingResources -url http://website This is working for me....

Tuesday, 18 Aug 2009 07:51 by chandrika
thanks this was really help full.

Wednesday, 26 Aug 2009 12:07 by Cássio
Perfect, thank you.

Tuesday, 1 Sep 2009 09:38 by Michael
Thanks a lot. This is a good trick.

Monday, 5 Oct 2009 03:03 by Tanmay Bari
Thanks ! This worked !

Tuesday, 27 Oct 2009 09:58 by shane
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN> stsadm -o activatefeature -name PublishingResources -url http://website did not work Failed to find the xml file location feature.xml'

Tuesday, 17 Nov 2009 09:34 by Siva Charan Gavvala
This works for me greate, Siva Charan Gavvala

Wednesday, 18 Nov 2009 04:14 by Vidya
Worked for me, thank you so much!!!!!!!

Thursday, 17 Dec 2009 10:34 by CMD
http://blogs.msdn.com/sharepoint/archive/2009/06/25/service-pack-2-update.aspx

Thursday, 17 Dec 2009 10:36 by cmd
I got the same problem but the solution is different. http://blogs.msdn.com/sharepoint/archive/2009/06/25/service-pack-2-update.aspx

Monday, 1 Feb 2010 01:14 by Chaithra
Thanks.. It worked!!

Friday, 30 Apr 2010 06:26 by Lisa
Worked like a charm...thanks for the info!

Tuesday, 25 May 2010 01:09 by Abu A
Hi All This did the trick for me: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN> stsadm -o activatefeature -name PublishingResources -url http://website Operation completed successfully.

Wednesday, 9 Jun 2010 06:38 by sachith
Thank you for this post. It was really helpful and saved my time.

Monday, 14 Jun 2010 07:44 by Tee
Thank you for this post. Saved me a whole lot of sharepoint headache

Thursday, 1 Jul 2010 05:10 by Captkell
Errored out with Publishing sites and features cannot be activated in the Central Administration Web Application. WebUrl: 'http://datafile:35232'



Url

Email

Comments