Question

I have two environments of MS Project. One is Project Server 2013, and the other is Project Online. With just the PWA Url, can I know which type of environment I'm trying to connect?

If just the URL is not enough, what's the minimum of information needed to know this programmatically?

I need to know this because apparently, I'll need to use NetworkCredential to login to Project Server, but if I'm connecting to Project Online, then I'll need to use SharePointOnlineCredentials.

Was it helpful?

Solution

Project Online is always going to have a host name like tenant.sharepoint.com. Your on-prem instance is going to have it's on specific url. This should be sufficient enough for you to determine which credential method to use.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top