exception question #525

Open
opened 2026-01-29 22:13:19 +00:00 by claunia · 0 comments
Owner

Originally created by @ghost on GitHub (Jun 23, 2022).

Hi

When trying to open some RAR files, I get more exceptions and would like to ask what they mean. Are it maybe corrupted archives too?
WinRAR gives error messages too on those files.

  • SharpCompress.Common.InvalidFormatException
    Message: Unknown Rar Header: (followed by a number)

  • System.InvalidOperationException
    Message: Cannot determine compressed stream type. Supported Archive Formats: Zip, GZip, Tar, Rar, 7Zip

Is there a way I can fix RAR files using a tool? Or is the only way to get rid off those exceptions by extracting the content files that still can be extracted from the RAR file and then make a new RAR file with the extracted files?

Thank you!

Originally created by @ghost on GitHub (Jun 23, 2022). Hi When trying to open some RAR files, I get more exceptions and would like to ask what they mean. Are it maybe corrupted archives too? WinRAR gives error messages too on those files. - SharpCompress.Common.InvalidFormatException Message: Unknown Rar Header: (followed by a number) - System.InvalidOperationException Message: Cannot determine compressed stream type. Supported Archive Formats: Zip, GZip, Tar, Rar, 7Zip Is there a way I can fix RAR files using a tool? Or is the only way to get rid off those exceptions by extracting the content files that still can be extracted from the RAR file and then make a new RAR file with the extracted files? Thank you!
claunia added the question label 2026-01-29 22:13:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#525