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 ??

  • have you opened vs2010 as administrator..? Mar 26, 2013 at 13:05

2 Answers 2


try this..

go to Central Administration -> Application Management -> Configure quota and locks

in that Site Lock Information Section.

select Lock Status for this site -> Not locked

Hope it helps...

  • I checked, its already Not locked.
    – SPBeginer
    Mar 26, 2013 at 13:45
  • also check database is in readonly and site collection administrator.. Mar 26, 2013 at 13:54

run this script in powershell, it has todo with editing you web.config file.

$cs = [Microsoft.SharePoint.Administration.SPWebService]::ContentService 
$cs.RemoteAdministratorAccessDenied = $false  

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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.