I'm Zipping a single file into an archive (foo.txt) and adding the extension of '.zip' to it. Everything works just fine. I'm able to double click on the file under Windows XP and view the contents just fine.
The problem arises when I try to extract the file by right clicking on the .Zip file and selecting Extract All. It asks for a password. My code is as follows:
Dim lZip As Ionic.Zip.ZipFile = Nothing
Dim rstrFile as string = "C:\Junk\Foo.TXT"
'Zip a single file and add a '.zip' extension
lZip = New Ionic.Zip.ZipFile(rstrFile & ".zip")
lZip.CompressionLevel = Ionic.Zlib.CompressionLevel.BestCompression
lZip.FlattenFoldersOnExtract = True
Oh, and the code is in VB.NET 2005.