Odata connection in LinqPad gives (403) Forbidden error
I have LinqPad 4 installed on my machine. I am trying to use LinqPad for generating a URL for Odata/Excel for MS Project server 2013. When I try to add a connection using the below URI in LinqPad using odata driver, it's giving me the below error. The error is the same with or without my login credentials. Any ideas?
URI -> https://companyname.sharepoint.com/sites/pwa/_api/ProjectData/
WebException: The remote server returned an error: (403) Forbidden
URI -> https://companyname.sharepoint.com/sites/pwa/_api/ProjectData/
WebException: The remote server returned an error: (403) Forbidden
Comments
My login (userid@company.onmicrosoft.com) and password work fine in excel 2013 with odata driver (Data->From Other Sources->From Odata data feed) for the link https://companyname.sharepoint.com/sites/pwa/_api/ProjectData/. I see all the tables in project server database with this.
dsContext.Credentials = new NetworkCredential (username, password);
As far as I know, this is the correct way to do it. If you're aware of something else, please let me know.
Try the new beta and let me know.
I have a sample I can send you. I am new to LinqPad. If you accept submissions, I can write it for you and test it.
Thanks,
Colby Africa
(Former member of the Microsoft Project product group)