Access Denied while activating ‘Adobe LiveCycle Connector’ feature on SharePoint 2010

After installing Adobe LiveCycle Connector Web Part on SharePoint 2010, you may encounter an error Access Denied while activating Adobe LiveCycle Connector feature on a SharePoint Site Collection. This issue occurs due to a new security feature implemented in SharePoint 2010. You can refer Microsoft KB 2564009 for details.

You can check SharePoint logs for details of the exception. The logs would look similar to:

w3wp.exe (0x0F48) 0x190C    SharePoint Foundation Feature Infrastructure  88jm    High     Feature receiver assembly ‘AdobeLiveCycleConnector, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6720cbcc342f4ca4′, class ‘LiveCycleInterop.LiveCycleFeatureReceiver’, method ‘FeatureActivated’ for feature ’33a7c6b5-4e62-44aa-bf99-62d283de683a’ threw an exception: System.Security.SecurityException: Access denied.     at Microsoft.SharePoint.Administration.SPWebService.set_RemoteAdministratorAccessDenied(Boolean value)     at LiveCycleInterop.LiveCycleFeatureReceiver.addToWebConfig(SPFeatureReceiverProperties properties)     at LiveCycleInterop.LiveCycleFeatureReceiver.FeatureActivated(SPFeatureReceiverProperties properties)     at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)  The Zone of the assembly that failed was:  MyComputer    fda8f095-7baa-47e4-b400-740259ad8ff5

To overcome this issue:

  1. Create a file named Set-RemoteAdministratorAccessDenied-False.ps1 anywhere on your machine.
  2. Add following code to the file:

function Set-RemoteAdministratorAccessDenied-False()
{
    # Load SharePoint API Libraries
    [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) > $null
    [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Administration”) > $null

  # Get the Content Service
 $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
  # Set Remote Administration Access Denied to false.
 $contentService.RemoteAdministratorAccessDenied = $false
  # Update the content service
 $contentService.Update()

}

Set-RemoteAdministratorAccessDenied-False

  1. Open PowerShell, go to the directory where you have saved the file Set-RemoteAdministratorAccessDenied-False.ps1 and Run command:

.\Set-RemoteAdministratorAccessDenied-False.ps1

  1. Restart the machine.
  2. After restart, try to activate the Adobe LiveCycle Connector. The Adobe LiveCycle Connector will start successfully.

After this, you may want to reset the security settings back to it’s original value. You can do this by following the below steps:

1.) Change the line  $contentService.RemoteAdministratorAccessDenied = $false to  $contentService.RemoteAdministratorAccessDenied = $true in the file  Set-RemoteAdministratorAccessDenied-False.ps1

2.) Open PowerShell and run the command:-

.\Set-RemoteAdministratorAccessDenied-False.ps1

A machine restart is necessary to apply the security setting back.

 

Thanks

Pankaj Gakhar

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 7.5/10 (2 votes cast)
Access Denied while activating 'Adobe LiveCycle Connector' feature on SharePoint 2010, 7.5 out of 10 based on 2 ratings
This entry was posted in Adobe LiveCycle ES3 and tagged , , , . Bookmark the permalink.

Comments are closed.