Tuesday, August 2, 2011

Access denied error on SPWebApplication.Update()

While changing the default Access Denied page it was required to call update method SPWebApplication. But I received access denied error on SPWebApplication.Update().
The reason was that the Remote Administration Access Denied was true by default.

How to disable Remote Administration Access Denied?
Remote Administration Administration Access denied can disabled using command shell. Open Shell and run commands specified below:

$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$contentService
.RemoteAdministratorAccessDenied =
$false
$contentService
.Update()
 

2 comments:

  1. That worked. Spend more than 2 hrs on this and then I came accross your Post. Thanks for posting this

    ReplyDelete

Popular Posts