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.
Posted in MOSS 2007 | Tagged: Access Denied, Activating Office Server Publishing Infrastructure, Application Pool, Enterprise Sites, IIS, IISRESET, MOSS 2007, Publishing Infrastructure, Report Center, Site Collection Administration, Site Collection Features, Site Templates | 5 Comments »
Posted by Ramprasad Navaneethakrishnan on January 15, 2009
While enumerating Sharepoint user profiles like this
foreach (Microsoft.Office.Server.UserProfiles.UserProfile userProfile in profileManager)
if the user don’t have administrator privileges, then the following exception will occur.
“System.UnAuthorizedException : Access Denied – Only Administrator may enumerate through all user profiles”.
To resolve this, proceed with the following steps..
1. Go to SSP – > Personalization services permissions

2. Modify Permissions for NT AUTHORITY\Authenticated Users

3. Select the option “User Profile Manager” and Save.

Now you are ready to enumerate the Sharepoint User Profiles…
Posted in MOSS 2007 | Tagged: Access Denied, Enumeration user profiles, Manage User Profiles, Microsoft Office Sharepoint Server 2007, Microsoft.Office.Server.UserProfiles.UserProfile, MOSS, MOSS 2007, Only Administrator may enumerate through all user profiles, Personalization services permissions, Sharepoint 2007, SSP, System.UnAuthorizedException, User Profile, UserProfileManager | 5 Comments »