Closed dotI0 closed 4 years ago
I have the same problem with the token.json file not created (only a directory). My code runs ok in Windows 7 but in Windows 10 the token.json file is not created. I don't know if the OS version is the problem here.
With an update of the Google API the error resolved.
I have a Problem connecting my .NET C# Application with Google Calendar using the Google.Apis.Calendar.v3 NuGet Package.
If I use the Code provided by the .NET example given by Google, I get two errors. The example on the Google page: https://developers.google.com/calendar/quickstart/dotnet
The error occurred in the following code section after authenticating on the opened web page.
credential = GoogleWebAuthorizationBroker.AuthorizeAsync(GoogleClientSecrets.Load(stream).Secrets, Scopes, "user", CancellationToken.None, new FileDataStore(credPath, true)).Result;
Error One:
Error Two:
Full Code: https://pastebin.com/1v7C3s66
The Application also creates a folder named token.json and not a token json file. Is this the problem?
What should I do?