GeneralCategoryPermissionDenied Error while doing QueueAddToProject
-
Monday, May 14, 2012 9:19 AM
Hello All,
I am facing this error while doing QueueAddToProject function of PSI on a Sharepoint application page. The user from which we are calling web services is admin on Project server. Please help us out.
Please see below the code for authentication of Web Services of PSI...
ProjectSvc.Project objProjects = new ProjectSvc.Project();
objProjects.PreAuthenticate = true;
objProjects.Credentials = new System.Net.NetworkCredential("xyz", "123456", "abc");
QueueSystemSvc.QueueSystem q = new QueueSystemSvc.QueueSystem();
q.PreAuthenticate = true;
q.Credentials = new System.Net.NetworkCredential("xyz", "12345", "abc");
ResourceSvc.Resource objResources = new ResourceSvc.Resource();
objResources.PreAuthenticate = true;
objResources.Credentials = new System.Net.NetworkCredential("xyz", "123456", "abc");Hammad Umar
All Replies
-
Monday, May 14, 2012 7:22 PM
Hi Hammad,
Can you please share what kind of error you're facing?
Thanks, Kashif
-
Tuesday, May 15, 2012 4:32 AMGeneralCategoryPermissiondeined when i am calling the project.QueueAddtoproject function.i am using Projectserver SDK asmx dll for developing. it is working fine in other places but just over here i m facing this error.
Hammad Umar
-
Wednesday, May 16, 2012 9:40 AM
Check does the user have proper permission to perform this task. Please check on the category's permission and then try. First try with Admin and then try with particular user.
Thanks, Kashif
-
Wednesday, May 16, 2012 9:43 AM
kashif i am using Administrator for this purpose.. i have resolved this issue, i am facing this issue because my project dataset is empty... it is not adding the resource assignment. Thanks for your kind help.Hammad Umar
- Marked As Answer by Hammad Umar Wednesday, May 16, 2012 9:43 AM