googleworkspace / dotnet-samples

.NET samples for Google Workspace APIs
Apache License 2.0
167 stars 140 forks source link

Google CalendarException #22

Closed sirsbusiso closed 5 years ago

sirsbusiso commented 5 years ago

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)

erickoledadevrel commented 5 years ago

Unfortunately you didn't provide enough information to allow us to debug the issue.

sirsbusiso commented 5 years ago

Hi there,

I was trying to test the Calendar api on my console application and the exception I encounter says 'System.IO.FileNotFoundException: Could not find file' for the credentials.json file that I downloaded and added onto my project.

Thanks. CalendarIssue.docx

erickoledadevrel commented 5 years ago

Please ensure you have followed the directions in the quickstart:

https://developers.google.com/calendar/quickstart/dotnet#step_3_set_up_the_sample

sirsbusiso commented 5 years ago

I will do so, thanks Erick.

sirsbusiso commented 5 years ago

Hi Erick,

I have tried following the step by step tutorial and I encounter an Auth exception, please see below.

Unhandled Exception: System.InvalidOperationException: At least one client secrets (Installed or Web) should be set at Google.Apis.Auth.OAuth2.GoogleClientSecrets.get_Secrets() at ConsoleApplication1.Program.Main(String[] args)