Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

project 2010: GeneralSecurityAccessDenied error when using updatestatus to update the timephased data of another resource

$
0
0

Hi,

I am getting the GeneralSecurityAccessDenied error when updating the timephased data of a resource other than the application's user. If I update the data of the application's user, it works fine. The application user has the StatusBrokerPermission and is the owner of the assignment that is to be changed. This is my code for your reference:

changeXml.Append("<Changes>");
changeXml.Append("<Proj ID='" + projectGUID.ToString() + "'>");
changeXml.Append("<Assn ID='" + assnID[0] + "' ResID= '" + resourceID + "'>");
changeXml.Append("<PeriodChange PID=\"" + pidActualWrk + "\" Start=\"2011-01-29T08:00:00\" End=\"2011-01-29T17:00:00\">210000</PeriodChange>");
changeXml.Append("</Assn>");
changeXml.Append("</Proj>");
changeXml.Append("</Changes>");

statusing.UpdateStatus(changeXml.ToString());
statusing.SubmitStatusForResource(resourceID, assnID, ""); 

Any suggestions as to what may be causing this error?

Regards, George


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>