title: Issue in Download file from google drive api in .net
body: <p>I want to download document from Google Drive.for that I am using Google Drive API. I am very new to Google Drive API so can any one tell me how to download document from google Drive ?</p>
  
  <p>I have try this option from <a href="https://developers.google.com/drive/manage-downloads#downloading_google_documents" rel="nofollow">here</a> but I am getting exception on line</p>
  
  <pre><code>HttpWebRequest request = (HttpWebRequest)WebRequest.Create( new Uri(file.DownloadUrl.ToString()));
  
  authenticator.ApplyAuthenticationToRequest(request); HttpWebResponse response = (HttpWebResponse)request.GetResponse();
  </code></pre>
  
  <p>like</p>
  
  <blockquote>
    <p>The underlying connection was closed: An unexpected error occurred on
    a send.</p>
    
    <p>Unable to read data from the transport connection: An existing
    connection was forcibly closed by the remote host.</p>
  </blockquote>
  
  <p>I thing this problem occur because of scope. please tell me how to set scope in application</p>
  
  <p>pls not I am creating desktop application in c# .net</p>
  
  <p>can any one help me ?</p>