SharePoint Error - The current user is not an SharePoint Server farm administrator
错误截图
错误日志
位置:C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS
主要错误
The current user is not an SharePoint Server farm administrator.
处理过程
查看了当前User确实不是场管理员,但是尝试换了场管理员也不好用,因为是代码Call管理中心的Job,所以提权操作了,应该以系统账号去操作;
而且,Production没有问题,但是UAT始终报错,经过不懈的谷歌,发现是由于对象模型不允许远程调用造成的,需要执行一条PowerShell命令。
命令
[System.Reflection.Assembly]::LoadFile("C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.dll")
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$contentService.RemoteadministratorAccessDenied = $false
$contentService.Update()
执行完毕,就发现页面可以正常打开了。
博文推荐: |
SharePoint 2013 WebPart 管理工具分享[开源] |
基于SharePoint 2013的论坛解决方案[开源] |
SharePoint 2013 学习基础系列入门教程 |
SharePoint 2013 图文开发系列之门教程 |
SharePoint Designer 学习系列入门教程 |
特:如果有SharePoint项目,欢迎邮件联系我,Email:linyu_s@163.com |