First let me say I think this is a wonderful contribution to the .Net community. Based on all the reviews I've read, I'm sure I'm just doing something wrong.
My task is pretty simple. I'm trying to compress up a directory structure and offload it to an amazon s3 repository for backup. Everything appears to work, but when I try to open the compressed file, I get the following disheartening message
(using the standard winzip utility):
"The Compressed (zipped) Folder is invalid or corrupted."
Now, I'm compressing somewhere in the family of 60,000 files into a resulting 11 GB file. The code I'm using is relatively simple, but I just don't get why I can't open it.
Using zip As New ZipFile()
' the Readme.txt file will not be password-protected.
zip.UseZip64WhenSaving = Zip64Option.AsNecessary
zip.AddSelectedFiles("(name != '*\.svn\*.*') and (name != *.zip) and (name != LogFailures.*)", FolderToZip, "", True)
I found a few articles that led me to believe that winzip wont open zip64 files, so I downloaded Cam Unzip (don't really know much about its reliability). When I try to use it to open the compressed file, I get the following three responses:
"Warning - Error in zip structure"
"Error: Warning - Error in zip structure!"
"A central header signature is wrong"
Any ideas why this might be happening? I've got everything else working smoothly with regards to taking full and incremental backups as well as shipping the file off to s3. This is the last part and I've been stuck for 2 weeks (off and on) on