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.

1 Answer 1


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.

  • Now that's being clever! Nice one mate :) Aug 9, 2016 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.