Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "ApplicationID does not exist" #1

Open
bjimdar opened this issue Apr 6, 2016 · 3 comments
Open

Error: "ApplicationID does not exist" #1

bjimdar opened this issue Apr 6, 2016 · 3 comments

Comments

@bjimdar
Copy link

bjimdar commented Apr 6, 2016

I can't seem to get the sample to work and need some help. I followed the instructions to setup ngrokand configured a new application in the Developer Center to get OneDrive personal working.

Clicking OneDrive Personal to login threw an error saying that a redirect url doesn't match settings. So I after reading through the API docs a bit I tried entering: http://localhost:52026/Account/Redirect as a RedirectURL on the API settings tab in Developer Center. This let's me authenticate successfully and I am taken to WebHooks view.

Clicking "Create Subscription" throws an exception.
I added some try/catch blocks to SubscriptionControllerand was able to determine that the first API call that is made on line 39 throws a OneDriveException with an Error.code of itemNotFoundand an Error.Message of "The Application ID does not exist".

I've triple-checked that the ida:MsaAppId appSettings value matches the one from the Microsoft account Developer Center. I've even tried deleting the application, recreating it. Same error no matter what I try.

It would really help if the documentation included examples of what to enter for "Target Domain", "JWT Reissuing", and Redirect URL values in application settings.

@bjimdar
Copy link
Author

bjimdar commented Apr 11, 2016

Worked on this a bit more and it seems like there's some kind of permissions issue with the Subscriptions API on the service side that I can't resolve. Unless I'm missing something it appears that the webhook API is in an "unhealthy state" at the moment and just plain doesn't work. I guess this means we're going to have to drop OneNote support for our project and just go with the other file sync services for now. I'll check back in a while to see if this sample has been updated and will give it another try then.

@frankashley
Copy link

I am in the same place.

@prashaiit
Copy link

getting the exception at line 39 of subscription file. Can you please fix it and update the sample ?

[OneDriveException: Exception of type 'Microsoft.OneDrive.Sdk.OneDriveException' was thrown.]
Microsoft.OneDrive.Sdk.d__14.MoveNext() +1015
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
System.Runtime.CompilerServices.TaskAwaiter1.GetResult() +28 Microsoft.OneDrive.Sdk.<SendRequestAsync>d__29.MoveNext() +762 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 System.Runtime.CompilerServices.TaskAwaiter1.GetResult() +28
Microsoft.OneDrive.Sdk.d__27`1.MoveNext() +217
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants