Sharepoint / Project Server 2013演练:创建SharePoint托管的Project Server应用程序

时间:2013-10-04 14:23:53

标签: sharepoint-2013 ms-project-server-2013

当我关注http://msdn.microsoft.com/en-us/library/office/jj873844.aspx并发布(使用F5)时,我的应用和功能被称为:

function getAssignments() {
    assignments = PS.EnterpriseResource.getSelf(projContext).get_assignments();

    projContext.load(assignments,
        'Include(Project, Name, ActualWork, ActualWorkMilliseconds, PercentComplete, RemainingWork, Finish, Task)');

    // Run the request on the server.
    projContext.executeQueryAsync(onGetAssignmentsSuccess,
        // Anonymous function to execute if getAssignments fails.
        function (sender, args) {
            alert('Failed to get assignments. Error: ' + args.get_message());
        });
}

我收到以下错误:

错误:GeneralSecurityAccessDenied

你知道为什么吗?我到处都在使用属于管理员组的本地帐户。

1 个答案:

答案 0 :(得分:0)

你有没有跟着文章到最后?

有一个AppManifest.xml示例,它包含2个权限:

   <AppPermissionRequests>
      <AppPermissionRequest Scope="http://sharepoint/projectserver/statusing" Right="SubmitStatus" />
      <AppPermissionRequest Scope="http://sharepoint/projectserver/projects" Right="Read" />
   </AppPermissionRequests>

如果您没有将这些权限授予应用程序,则无法从项目服务器获取数据并向您提供错误:GeneralSecurityAccessDenied