Monday, May 14, 2012 9:19 AM
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");
Monday, May 14, 2012 7:22 PM
Can you please share what kind of error you're facing?
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.
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.
Wednesday, May 16, 2012 9:43 AMkashif 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.
- Marked As Answer by Hammad Umar Wednesday, May 16, 2012 9:43 AM