Click here to Skip to main content
15,887,349 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi I am using google Youtube api v3 to upload video, below are sample code

https://developers.google.com/youtube/v3/code_samples/dotnet#upload_a_video[^]

Its working fine on my local side, while when i upload this on server i am getting Error :
C#
access to the path 'google.apis.auth' is denied


below is my client_secret.json file content :
C#
installed":{"client_id":"xxxxx-xxxxxxx.apps.googleusercontent.com","project_id":"newkronopress","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"xx_oF3h81K8dOFTccJEtzxxxquot;,"redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost


I also host to my local IIS and set full permission to Iuser and IISUser but issue is exist, i am not sure how can i fix this.
Posted
Updated 7-Jan-16 23:36pm
v3
Comments
[no name] 8-Jan-16 1:52am    
Looks like it is permission issue. Go through below links:

http://ambracode.com/index/show/8501

http://stackoverflow.com/questions/23405767/system-unauthorizedaccessexception-access-to-the-path-google-apis-auth-is-deni
Member 11324668 8-Jan-16 1:57am    
Thank you for reply, we have dedicated server, and i put the full permission to I_user and IISUser.

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