Sharepoint 2010: “Access Denied” Error Message While Activating A Timerjob Site-Feature


Error:

ULS: Access denied. w3wp.exe (0x1E30) – 6615 – Critical under /_layouts/ManageFeatures.aspx?Scope=Site

Getting a error message while activating a timerjob site-feature (on a production system with uac) as farm and local administrator on a sharepoint site.

Solution:

1) Execute this powershell script as farmadmin:

function Set-AccessDenied-False()
{
# load sharepoint api libs
[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) > $null
[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Administration”) > $null# get content web service
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
# turn off remote administration security
$contentService.RemoteAdministratorAccessDenied = $false
# update the web service
$contentService.Update()

}

Set-AccessDenied-False

2) App pool recycle or iisreset

3) Active your feature again 😉

Advertisements

One thought on “Sharepoint 2010: “Access Denied” Error Message While Activating A Timerjob Site-Feature

  1. I got this error while I made deployment to sharepoint 2010 farm.. I made this process to sharepoint 2010 farm. This script file is located on th c partition of selfcare app machine.

    function LoadSharePointPowerShellEnvironment
    {
    write-host
    write-host “Setting up PowerShell environment for SharePoint…” -foregroundcolor Yellow
    write-host
    Add-PSSnapin “Microsoft.SharePoint.PowerShell” -ErrorAction SilentlyContinue
    write-host “SharePoint PowerShell Snapin loaded.” -foregroundcolor Green
    }

    function SetRemoteAdministratorAccessDenied()
    {
    # load sharepoint API libs
    [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) > $null
    [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Administration”) > $null

    # First get the content web service
    $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
    # Now set the remote administration security to off
    $contentService.RemoteAdministratorAccessDenied = $false
    # Also update the web service
    $contentService.Update()

    }

    write-host
    LoadSharePointPowerShellEnvironment
    SetRemoteAdministratorAccessDenied

    Muckss my baby :):D

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s