I have created a website in asp.net
to store uploaded files on Google Drive using Google Drive API.
Everything works fine on local machine, but on my server when I am accessing my site for drive functionality, I am getting the following Error:
System.UnauthorizedAccessException: Access to the path 'Google.Apis.Auth' is denied.
My authentication code:
var driveCredential =
GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets {ClientId = CLIENT_ID,ClientSecret = CLIENT_SECRET, }
,new[] { DriveService.Scope.Drive }
,"user@gmail.com"
,CancellationToken.None).Result;
How to resolve this Issue ?