On executing the following code.. I get an exception on the OpenRead
statement:
End of Central Directory record could not be found.
I am however able to open the zip file with no issues through windows explorer.
Any thoughts?
string zipPath = @"c:\testfiles\MMM_C13000_2016M08.zip";
using (ZipArchive archive = ZipFile.OpenRead(zipPath))
{
foreach (ZipArchiveEntry entry in archive.Entries)
{
}
}