Access Denied – Activating Microsoft Office Server Publishing Infrastructure
Posted by Ramprasad Navaneethakrishnan on April 27, 2009
Hi Fellas,
Stuck up with the error “Access Denied” while activating the Publishing Infrastructure feature?? Read this post for solution
I was trying to create a sharepoint site with the Report Center template under the Enterprise tab.

I got the message that I need to activate Publishing Infrastruture Feature in Site Collection before creating site of this type.

I went to Site Collection Features in the section Site Collection Administration through Site Actions – > Site Settings

When tried to activate the Publishing Infrastructure Feature, I got the Access Denied error.

Solution 1:
Run the following command
stsadm -o activatefeature -name PublishingResources -url <siteurl>
Solution 2:
After some analysis, I found out that the AppPool for the current web application is having limited privileges. I did the following steps to resolve the problem
1. Open IIS. Locate the Web Applications. Go to properties. Select the Home Directory tab. Change the Application Pool to the one used by the Central Administration
2. Do IISRESET
3. Go the Site Collection Features. Activate the feature. Now it gets activated!
4. Go to IIS. Change the Application pool of the web application to the original one.
5. Do IISRESET
6. Now go back and create the Report Cente Site
Hope this will be useful. Forgive me for the horrible screenshots
Thanks,
Ramprasad.
Mario said
Thanks man! you save me a lot of time
Joe said
Hi,
Solution 2 worked great for me on my first site. Upon making another site however (on a different AppPool) I can’t get it to activate. Getting the Access Denied error. Do you have any other ideas why this wouldn’t work now? Solution 1 will not work. I’m getting a “Stsadm is not a valid Win32 application.”
Thanks.
Joe
shri said
folks,both the solutions are not working for me.will u please help me out
Ms.Vedika said
Thanq so much it help me out.
nganphung said
Solution 1:
- First, you must run this command line:
cd “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN”
- After that you run:
stsadm -o activatefeature -name PublishingResources -url http://yourwebsite