SharePoint Server PowerShell访问被拒绝
我在SharePoint服务器上运行自定义Web服务(2010)。 我的脚本工作正常,直到我打电话更新数据库。 我得到这个错误: Exception calling "Update" with "0" argument(s): "Access denied." —> Access denied. 我的Web服务是用C#编写的,我不确定是否需要向代码添加一些凭据,或者需要在服务器上进行一些安全更改。 发生exception: System.Management.Automation.MethodInvocationException: Exception calling "Update" with "0" argument(s): "Access denied." —> System.Security.SecurityException: Access denied. at Microsoft.SharePoint.Administration.SPPersistedObject.BaseUpdate() at Microsoft.SharePoint.Administration.SPDatabase.Update() at Update(Object , Object[] ) at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[] arguments, MethodInformation methodInformation, Object[] originalArguments) The Zone of the assembly that failed was: […]