title: Why do I get System.UnauthorizedAccessException Access to the path 'Google.Apis.Auth' is denied
body: <p>I have implemented google drive functionality for file management its working fine in local system but whenever i hosted it on Godaddy server it throw following error</p>
  
  <blockquote>
    <p>System.UnauthorizedAccessException
        Access to the path 'Google.Apis.Auth' is denied.</p>
  </blockquote>
  
  <p>Following code i am using :</p>
  
  <pre><code>UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
     new ClientSecrets
     {
         ClientId = System.Configuration.ConfigurationManager.AppSettings["GDriveClientId"],//Get ClientID from web.config.
         ClientSecret = System.Configuration.ConfigurationManager.AppSettings["GDriveClientSecret"]//Get ClientSecret from web.config.
     },
     new[] { DriveService.Scope.Drive },
     System.Configuration.ConfigurationManager.AppSettings["GDriveCreatedByUser"],//Get UserName from web.config.
     CancellationToken.None).Result;
  
  return credential;
  </code></pre>
  
  <p>I am using VS2010,IIS 7 for above functionality</p>