ZipEntry::ReadDirEntry(): Bad signature (0x00000000) at position 0xBDBFEF27 Help Please

Jun 24, 2010 at 5:04 PM

At first I thought maybe it was something about the zip file was using, but I get the same error on a zip file made with the built in Windows 7 compressed zip containing only a .txt file. Here is the code doing the unzipping which is also just an example from the site.

public void UnZipFile(string InputPathOfZipFile)
        {
            string unpack = Path.GetDirectoryName(InputPathOfZipFile);
            try
            {
                using (ZipFile zip1 = ZipFile.Read(InputPathOfZipFile))
                {
                    foreach (ZipEntry e in zip1)
                    {
                        e.Extract(unpack, ExtractExistingFileAction.OverwriteSilently);
                    }
                }
                
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            
        }

Coordinator
Jun 28, 2010 at 8:10 PM

How large is the file you are unzipping? 

The message you provided should be possible only with a very very large file: greater than 3gb.  Is that approximately the size of the file you're trying to unzip? 

I don't have Windows7, but I think the compressed folder should work the same on Windows7 as on Vista.  

 

Jun 28, 2010 at 8:12 PM

I figured it out, another part of my program was removing some characters from a .doc and somewhere I forgot to tell it not to do this for the .zip so it was removing them from the zip and corrupting it. After I fixed that dumb mistake worked like a charm