c# - OneDrive SDK Demo itemNotFound Error -


i trying demo onedrive sdk provided mvc application, here source:github onedrive-webhooks-aspnet. having trouble running app.

the problem happens after sign in, line in file "controllers/subscriptioncontroller" throws onedriveexception:

var appfolder = await client.drive.special["approot"].request().getasync(); 

the errocode "itemnotfound" , errormessage "the application id not exist." in exception. search on found little. there issue in git space author answered own question blaming onedrive broken.

i hope here @ stackoverflow can me it, much.

ok, turned out simple configuration mistake. in web.config appsettings section, value of "ida:msascopes" "files.readwrite", while current onedrive api permission should "onedrive.readwrite".

i new api, guess api updated after sample written. after all, hope may others have problem, , general, don't trust default values much.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -