mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-09 13:34:58 +00:00
rar header crc mismatch #524
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jun 21, 2022).
Hi
When trying to open some RAR files, I get this exception below. What does it mean and how to solve it?
SharpCompress.Common.InvalidFormatException
HResult=0x80131500
Message=rar header crc mismatch
Source=SharpCompress
StackTrace:
at SharpCompress.Common.Rar.Headers.RarHeader.VerifyHeaderCrc(UInt32 crc32)
at SharpCompress.Common.Rar.Headers.RarHeader..ctor(RarHeader header, RarCrcBinaryReader reader, HeaderType headerType)
at SharpCompress.Common.Rar.Headers.RarHeaderFactory.TryReadNextHeader(Stream stream)
at SharpCompress.Common.Rar.Headers.RarHeaderFactory.d__12.MoveNext()
at SharpCompress.Common.Rar.RarVolume.d__10.MoveNext()
at SharpCompress.Archives.Rar.RarArchiveEntryFactory.d__0.MoveNext()
at SharpCompress.Archives.Rar.RarArchiveEntryFactory.d__1.MoveNext()
at SharpCompress.Archives.Rar.RarArchiveEntryFactory.d__2.MoveNext()
at SharpCompress.LazyReadOnlyCollection`1.LazyLoader.MoveNext()
@adamhathcock commented on GitHub (Jun 22, 2022):
Likely corrupt archives. Check with WinRAR or similar
@ghost commented on GitHub (Jun 23, 2022):
Thx. Problem solved!