Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi ,

I am working Exporting files to Google drive.

It is working fine while you debug from local system..and uploading file to drive also.

when i publish it to server i am getting 'Access is denied' error.

log message:
---------------
XML
ExportToGoogle.aspx --- System.ComponentModel.Win32Exception (0x80004005): Access is denied
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.<AuthorizeAsync>d__1.MoveNext()Parameters -->


can any one help me on this.
Posted
Updated 22-Jun-15 2:26am
v7
Comments
Richard MacCutchan 9-Jun-15 3:22am    
What have you tried and where are you stuck?
siva575 9-Jun-15 4:21am    
Hi..i don't know how to start..can share any link..so that i can work
Richard MacCutchan 9-Jun-15 4:46am    
You could start by studying the documentation on the Google developer website.
siva575 22-Jun-15 7:52am    
Hi Rechard,

I started working on it.

it is successfully running in local system, after publishing it to production i am getting "Access is denid".

UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets { ClientId = clientId, ClientSecret = clientSecret }
, scopes
, userName
, CancellationToken.None
, new SQLDataStore()).Result;

while hitting to this method it is throwing exception.

can you please help me on this.

1 solution

I have the same problem :(
If you find a solution, can you post it on this page?
 
Share this answer
 

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