2013-10-04 126 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

相關問題