Am implementing a feature in an ASP.NET web application in the office to let people upload zip files in which there is an xml file to import into a database.
The problem is, I get this error when using System.IO.Compression.ZipFile
:
"Number of entries expected in End Of Central Directory does not correspond to number of entries in Central Directory."
and when I use System.IO.Compression.DeflateStream
, I get this error:
"Block length does not match with its complement."
Does not Windows zip use the same libraries? Are the zip formats/algorithms different from .Net to Windows zip?
and if anyone can suggest a solution I would be thankful.