-
Notifications
You must be signed in to change notification settings - Fork 31
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
Exception: 'The file is not a cloud file' #14
Comments
The line 336 in Registrar.cs is the call to ValidateStorageProviderSyncRootInfo() It does not look like this line can throw this exception. Could you please provide:
|
I can guess that there is something wrong with the folder that you are using. Please try any other folder to check. Typically your folder will be somewhere under the C:\Users<user>\ folder. This location has necessary permissions by default and this is where OneDrive and SharePoint mount their root folder. Please note that admin permissions are not required when registering. Typically you will install the application, register root and run your application with a regular user permissions, which provides higher security. Please also note that our sample applications elevate permissions only to install the developer certificate, for demo purposes only. The root registration is done with a regular user rights in our samples. |
Yes, it worked directly on the C drive only. OneDrive worked on |
Unfortunately we were unable to reproduce the issue that you describe. Please provide:
I can also guess that localization (OS language) may be causing this issue. We have recently seen issues with C:\Users<user>\ with some localizations on Windows 10 machines. |
please find below the requested information:
|
Hi,
I encountered an issue while running the code to register a sync root using
StorageProviderSyncRootManager.Register(storageInfo);
in Registrar.cs line 336. The exception thrown is:System.Exception: 'The file is not a cloud file. (Exception from HRESULT: 0x80070178)'
Steps Taken:
Any insights or suggestions to resolve this issue would be greatly appreciated.
Thank you
The text was updated successfully, but these errors were encountered: