Click here to Skip to main content
15,798,066 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

In my application I wanted to access the sharelink of all the files in root directory.
I tried many ways. But I could not find a simple solution.

What I have tried:

1. I tried GitHub - OneDrive/onedrive-texteditor-js: Simple single-page JavaScript app for editing text files[^] [^] this sample code but got stuck with "CompactToken parsing failed with error code: 80049217" error.
2. With using microsoft.graph SDK. I refer Calling Graph API Via Console Application Using .NET 5[^] this code sample but end up getting error "Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

Is there any simple working solution which I can refer in my case to get the sharelinks of files from onedrive root folder directory.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900