I have a problem when my code execute this using:
using (ZipFile archive = ZipFile.Read(File)) //<== Crash Here!
{
foreach (ZipEntry entry in archive.Entries)
{
entry.Extract(UnZipFolder.Name.ToString(), ExtractExistingFileAction.OverwriteSilently);
}
}
Crash when ZipFile try to read my File that it's a string and contains, sincrofit.zip then crash and throw this exception:
'System.ArgumentException' Additional information: 'IBM437' is not a supported encoding name.
In Visual Studio:
Open Package Manager Console and type in Install-Package System.Text.Encoding.CodePages -Version 4.4.0. Change the version number appropriately.
Add this line to your code: Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Attach the necessary directive if required.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With