Hi,
Thanks for the Reply & sorry for the delay from my side.
Certainly i will use Impersonation and Let you know about that what has
happend,
but mean while i was using Administrator's Account, and trying to update the
task Of other users using this account my doubt is still i will receive this
Error even if i an using Administrator's Account
I think it might just happen that Admin doesnt have proper Right to Update,
I will let that you know as well.
Thanks again for the Replies and spending your time for my Problem.
Parth
:
Nothing is wrong, per se... it depends on what you have set for the
various variables in your code. The biggest thing to remember when
working with the Statusing PSI is that it only allows operations for the
current user. This means that most of the time you need to use
impersonation. In general, when you receive a
GeneralSecurityAccessDenied exception when calling UpdateStatus it's
because you are trying to update the status of an assignment not owned
by the user you are authenticated as.
Since you are using DefaultCredentials in your application, an excellent
example would be if you are running this application as
DOMAIN\ssanderlin but you are trying to update an assignment for
DOMAIN\parth. This will not work. You would need to change the code to
use impersonation so that the PSI believes you are DOMAIN\parth and then
execute UpdateStatus.
There is a great deal of documentation in the SDK and on the net about
using impersonation... give it a shot. If you run into a problem
implementing impersonation in your code, let us know and we will get it
fixed up for you.
--
Stephen Sanderlin
Principal Consultant
MSProjectExperts
For Project Server Consulting:
http://www.msprojectexperts.com
For Project Server Training:
http://www.projectservertraining.com
Read my blog at:
http://www.projectserverhelp.com
Join the community at:
http://forums.epmfaq.com
Hi
i am not using Queing Service just a Naming Convention Error....Sorry....
and the Error only says General Security Access Denied that's it,
is there anything wrong with my code.
and can you help me create a Windows App or is there any code available for
Win App so that i will run this on Admin USer only.
if you can please help me out.
Thanks
Parth
:
You appear to be using the QUEUEWEBSERVICE path for the Statusing web
service... Also, does the user account you are running the application
as have access to the application?
Can you post the full error you receive when attempting to execute this
code?
--
Stephen Sanderlin
Principal Consultant
MSProjectExperts
For Project Server Consulting:
http://www.msprojectexperts.com
For Project Server Training:
http://www.projectservertraining.com
Read my blog at:
http://www.projectserverhelp.com
Join the community at:
http://forums.epmfaq.com
Please Review the Following Code:
I am getting Error at the UpdateStatus Method:
Guid assn = new Guid(((Label)gvr.FindControl("lblAssn")).Text);
string changexml =
((TextBox)gvr.FindControl("lblPSI")).Text;
CookieContainer cookiecontainer = new CookieContainer();
login.Url = baseurl + LOGINWINDOWS;
login.Credentials =
System.Net.CredentialCache.DefaultCredentials;
login.CookieContainer = cookiecontainer;
login.UseDefaultCredentials = true;
sta.Url = baseurl + QUEUEWEBSERVICE;
sta.Credentials =
System.Net.CredentialCache.DefaultCredentials;
sta.CookieContainer = cookiecontainer;
sta.UseDefaultCredentials = true;
//sta.CookieContainer = cookiecontainer;
sta.UpdateStatus(changexml.ToString());
sta.SubmitStatus(new Guid[] { assn }, "Har Har Mahadev");
Label1.Text = "Update Succesfully";