当我关注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
你知道为什么吗?我到处都在使用属于管理员组的本地帐户。
答案 0 :(得分:0)
你有没有跟着文章到最后?
有一个AppManifest.xml示例,它包含2个权限:
<AppPermissionRequests>
<AppPermissionRequest Scope="http://sharepoint/projectserver/statusing" Right="SubmitStatus" />
<AppPermissionRequest Scope="http://sharepoint/projectserver/projects" Right="Read" />
</AppPermissionRequests>
如果您没有将这些权限授予应用程序,则无法从项目服务器获取数据并向您提供错误:GeneralSecurityAccessDenied