title: C# System.IO.InvalidDataException zip file
body: <p>System.IO.InvalidDataException: 'Number of entries expected in Central Directory Ending does not match the number of entries in the Central Directory.'</p>
  
  <p>I'm getting this error on a code that i'm making "for fun" when i try to extract an zip file to a folder. Help ;-;</p>
  
  <p>here's my situation: i made a Drag and Drop panel that recieve a file with a unique extension (the file is a zip but i changed the extension to test). Then the program will get the first line of text in the archive, and will create a folder to extract the files with the name given on that first line. But it gets that error on the extract code</p>
  
  <pre><code>string[] Arquivo = (string[])e.Data.GetData(DataFormats.FileDrop, false);
          foreach (string arquivo in Arquivo)
          {
              MessageBox.Show(arquivo);
              string[] allLines = File.ReadAllLines(arquivo);
              string line = string.Empty;
              if (allLines.Length &gt;= 1)
              {
                  line = allLines[0];
              }
              string Diretorio = @"C:\CommunicAlt\" + line;
              MessageBox.Show(Diretorio);
              if (!Directory.Exists(Diretorio))
              {
                  Directory.CreateDirectory(Diretorio);
              }
              Path.ChangeExtension(arquivo, ".zip");
  
              ZipFile.ExtractToDirectory(arquivo, Diretorio);     //&lt;--Here
  </code></pre>