KoenZomers / OneDriveAPI

API in .NET Framework 4.8.0, .NET Core 3.1 and .NET 6.0 to communicate with OneDrive Personal and OneDrive for Business
Eclipse Public License 1.0
110 stars 35 forks source link

Demo application consumer onedrive authorzation isn't working? #14

Closed jonas-s-s-s closed 6 years ago

jonas-s-s-s commented 6 years ago

I don't know if i'm doing something wrong, but when i try to use the consumer onedrive option in the demo app it crashes when I click the "authorize" button and displays this error: screenshot_9 (sorry that my VS isn't in english) I didn't modify anything in the demo application, the other 2 option work fine only the consumer onedrive which I want to use doesn't work.

KoenZomers commented 6 years ago

Even if you want to connect to a OneDrive Consumer drive, it is recommended to use the Graph API. The Graph API allows connecting to both OneDrive Consumer as well as OneDrive for Business.

The error message indicates your app.config does not have an AppSetting for either of those values which you are using in the line when the error occurs. Check your app.config and ensure both of these exist.

jonas-s-s-s commented 6 years ago

Even if you want to connect to a OneDrive Consumer drive, it is recommended to use the Graph API. The Graph API allows connecting to both OneDrive Consumer as well as OneDrive for Business.

The error message indicates your app.config does not have an AppSetting for either of those values which you are using in the line when the error occurs. Check your app.config and ensure both of these exist.

Ok, thanks. I'll use the graph API then.

KoenZomers commented 6 years ago

Perfect. Feel free to open a new issue if you run into trouble using that.