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

VS2013, CSOM - Error 401 (PS2013 in VirtualBox)

$
0
0
Hi Forum,

I have an issue with VS2013, Project server and CSOM and would appreciate any advice to head in the right direction.

Apologies in advance if this has been answered previously but it's been difficult to locate a solution so far.

Situation is as follows:

- Server 2012 R2 / Sharepoint 2013/ Project Server 2013 running on a stand-alone VM (its own Domain)

- On the Host I can access the Sharepoint site via Internet Explorer (Pop-up requests the username/password) and connects fine when using FarmAdmin Account for example.

- When running a basic CSOM application (read list of projects) from the host I get an error returned "401" Unauthorised.

            projContext = new ProjectContext(pwaPath);

            // Get the list of published projects in Project Web App.
            projContext.Load(projContext.Projects);
            projContext.ExecuteQuery();

- If I run the same app from within the guest, then in works fine (Logged into the Server as the FarmAdmin Account).

It seems like the permissions in which the app is running in the guest allows the appropriate access. Whereas on the host there's no opportunity to enter credentials like when IE shows the pop-up.

Is there a way for me to either:

a) Configure Sharepoint / Project server to trust the Host machine

b) Configure the host to raise the credentials when communicating with the guest O/S

c) Modify the application to either allow credentials to be entered or pre-fill some credentials in order to allow the call to work

Regards

Mark



Viewing all articles
Browse latest Browse all 5347

Trending Articles



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