I build SP 2010 project through VS 2010. On deploying through visual studio, I get following error:
Error occurred in deployment step 'Activate Features': Access is denied.
Any idea, what's wrong ??
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
run this script in powershell, it has todo with editing you web.config file.
$cs = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $cs.RemoteAdministratorAccessDenied = $false $cs.Update()
before updating the web.config programmatically, the 'Remote Administrator Access Denied' flag from the content service has to be switched off, otherwise, the SharePoint server spontaneously throws this misleading 'Access Denied' error message