GeneralSecurityAccessDenied with PSI

Y

Yaroslav

Hi!
I tried to use PSI to get Projects information from ProjectServer. I
downloaded Project Server SDK and opened webpart that should show upcoming
projects. To use it I changed PSI webservices urls to my own (removed all
webreferences and added references to my webservices. I saw the page with
their description, so it should work).
After that I tried to add this webpart to project server but it throwed
exception GeneralSecurityAccessDenied. It occured while executing
ReadProjectList method. No other helpful information can be found. How to
solve this problem? Or what steps should I do to have more information to
solve it?
I tried to describe everything as clear as I can. Sorry for my bad english.
Also I can provide more details if needed.

Thanks in advance.
 
S

Stephen Sanderlin

ReadProjectList requires admin privileges. ReadProjectStatus is the
preferred method. This is discussed in the SDK topic for
ReadProjectList.



If the user who is logged in and attempting to load the web part does
not have ManageQueue and ManageSecurity permissions, then you will
receive this error.



Check the permissions and alternatively implement the web part using
ReadProjectStatus.

--

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
 
Y

Yaroslav

Thanks for your help! Now i tried ReadProjectStatus instead of
readProjectList. No exception but no projects were found with this method.
also even when i provide a project name nothing is found. I can only see one
row in project table. Guid is sequence of zeros and only name is filled ...
Maybe the problem is that I do not have some permissions to access project
info? But when i use ProjectWebAccess web site i can see this project and all
it`s tasks ...
 
S

Stephen Sanderlin

Y

Yaroslav

I use CredentialsCache.DefaultCredentials, also tried new
NetworkCredentials("Login", "Password", "domain"). But both have the same
result. I now have all the rights on our Project Server (Our admin logged in
and gave me all rights that could be given.) I`m going to try it now and
write the result later.
 
Y

Yaroslav

Well, now it worked! But that was probably because I got all rights for
viewing all the projects. Still didn`t try to Use ReadProjectsList again :).
Thanks for your help! I`ll try later today and write the result back here.
 
Y

Yaroslav

I asked people who do not have access to all projects to watch that web part,
that now use ReadProjectStatus. They can`t see any tasks. They can see these
tasks in the project, but can`t by viewing my webpart, that use
ReadProjectStatus :-(. If person is a project manager then he can see
project`s tasks. Otherwise - no. What can be the reason of this?
 
S

Stephen Sanderlin

Since the web part works correctly for you (having been given access to
view all project information) and the Project Managers (who can view
their own projects), I'd say the issue is due to people not having
access to view the project's information.



If you are trying to allow people who do not have access to the projects
to view project information without giving them permissions to do so,
you should have the web part call ReadProjectStatus() using
impersonation.

--

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
 
Y

Yaroslav

Hi!
Yes sure you are right, but I wrote in previous post:
"They can`t see any tasks. They can see these
tasks in the project, but can`t by viewing my webpart, that use
ReadProjectStatus "
So they CAN see THEIR tasks in project, they just do not have manager
permissions to this project to see ALL tasks. So I wonder, is this right that
they can`t see their own tasks with my webpart, but can see them in project?
I greatly appreciate your help, thanks!
 
S

Stephen Sanderlin

Try setting up your impersonation call to use the credentials of a user
that is experiencing this problem and then step through your code using
the debugger. What happens? Are any exceptions thrown that you're hiding
(intentionally or otherwise) that may be causing this behavior?


--

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top