PSI CALLS不在PROJECT SERVER 2013中工作 [英] PSI CALLS DO NOT WORK IN PROJECT SERVER 2013

查看:75
本文介绍了PSI CALLS不在PROJECT SERVER 2013中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


大家好,

Hello folks,

我现在需要进行一些PSI调用以获取一些Project Server数据,正如我所料,
PSI CALLS在PS2013中无效!

I now need to make some PSI calls to get some Project Server data, and as I was expecting, PSI CALLS DO NOT WORK IN PS2013 !

我创建了一个非常简单的SharePoint 2013项目(在Visual Studio 2012下)旨在测试应用程序页面中的PSI调用。在页面的页面加载事件中,我添加了以下代码:

I have created a very simple SharePoint 2013 project (under Visual Studio 2012) aiming at testing PSI calls within an application page. In the page load event of the page, I have added the following code :

protected void Page_Load(object sender, EventArgs e)
{
	    try
            {
                ProjectContext pj = new ProjectContext("http://ps2013-ts-qve/sandbox/");
                pj.Load(pj.EnterpriseResources);
                pj.ExecuteQuery();
                lblMessage.Text = "PSI Call succeeded!";
            }
            catch (Exception ex)
            {
                lblError.Text = ex.ToString();
            } }

执行此代码的用户在PWA中被声明为管理员,所以不应该有任何错误,但这是我得到的错误:

The user executing this code is declared as an administrator in PWA, so there shouldn't be any errors, but here is the error I get:

访问被拒绝。您无权执行此操作或访问此资源。 Microsoft.ProjectServer.PSContextServerStub.InvokeConstructor上的Microsoft.SharePoint.Client.ServerStub.CheckRequiredResourceRight(ProxyContext proxyContext,String memberName,ResourceRight right)at Microsoft.SharePoint.Client.ServerStub.CheckBlockedMethod(String
methodName,ProxyContext proxyContext)。 Microsoft.SharePoint.Client上的Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeConstructor(String typeId,XmlNodeList xmlargs)中的Microsoft.SharePoint.Client.ServerStub.InvokeConstructorWithMonitoredScope(XmlNodeList args,ProxyContext
proxyContext)中的XmlNodeList xmlargs,ProxyContext proxyContext) Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne上的Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessInstantiateObjectPath(XmlElement xe)中的Microsoft.SharePoint.Client.ClientMethodsProcessor.GetObjectFromObjectPathId(String
objectPathId)中的.ClientMethodsProcessor.GetObjectFromObjectPath(XmlElement xe) Microsoft.SharePoint上的(XmlElement xe) Microsoft.SharePoint.Client.ClientMethodsProcessor.Process()中的.Client.ClientMethodsProcessor.ProcessStatements(XmlNode
xe)

Access denied. You do not have permission to perform this action or access this resource. at Microsoft.SharePoint.Client.ServerStub.CheckRequiredResourceRight(ProxyContext proxyContext, String memberName, ResourceRight right) at Microsoft.SharePoint.Client.ServerStub.CheckBlockedMethod(String methodName, ProxyContext proxyContext) at Microsoft.ProjectServer.PSContextServerStub.InvokeConstructor(XmlNodeList xmlargs, ProxyContext proxyContext) at Microsoft.SharePoint.Client.ServerStub.InvokeConstructorWithMonitoredScope(XmlNodeList args, ProxyContext proxyContext) at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeConstructor(String typeId, XmlNodeList xmlargs) at Microsoft.SharePoint.Client.ClientMethodsProcessor.GetObjectFromObjectPath(XmlElement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.GetObjectFromObjectPathId(String objectPathId) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessInstantiateObjectPath(XmlElement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.Process()

...

MICROSOFT的某个人是否可以提供使此代码有效的解决方案???

Can someone at MICROSOFT provide the solution to make this code work ???

推荐答案

如果微软的某个人关心这一点,他们会已经回复了一会儿!这清楚地表明:

If someone at Microsoft cared about this, they would have replied a while ago! This clearly shows that :

- 首先,没有人有解决方案来解决我的问题。

- Firstly, no one has the solution to my problem.

- 其次,无人关心关于这种所谓的技术。

- Secondly, no one cares about this so-called technology.


这篇关于PSI CALLS不在PROJECT SERVER 2013中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆