title: c# ZipFile.CreateFromDirectory - the process cannot access the file "path_to_the_zip_file_created.zip" because it is being used by another process
body: <p>Basic Code:</p>
  
  <pre class="lang-cs prettyprint-override"><code>string startPath = @"C:\intel\logs";
  string zipPath = @"C:\intel\logs-" + DateTime.Now.ToString("yyyy_dd_M-HH_mm_ss") + ".zip";
  ZipFile.CreateFromDirectory(startPath, zipPath);
  </code></pre>
  
  <blockquote>
    <p>Error: the process cannot access the file "path_to_the_zip_file_created.zip" because it is being used by another process.</p>
  </blockquote>
  
  <p>The above setup works fine on windows 7 where I have Visual Studio installed but I get the above error message when running on Windows Server 2008R2.</p>
  
  <p>I have checked the antivirus logs and it does not block the application, nor does it lock the zip file that is created.</p>