2013-10-04 88 views
0

当我跟随http://msdn.microsoft.com/en-us/library/office/jj873844.aspx和发布(与F5)我的应用程序和函数被调用:的Sharepoint /的Project Server 2013演练:创建SharePoint托管项目Server应用程序

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

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

回答

0

你跟着文章一直到最后?

有一个AppManifest.xml样本,它包含2个权限:

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

如果妳不给这些权限的应用程序,它不能从项目服务器获取数据,给你错误:GeneralSecurityAccessDenied

相关问题