exception question #528

Closed
opened 2026-01-29 22:13:22 +00:00 by claunia · 1 comment
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:22 +00:00
Author
Owner

@adamhathcock commented on GitHub (Jun 24, 2022):

The errors are trying to be descriptive about what's wrong so that should help you to diagnose the issues.

What you to do try to fix things is up to you. Sorry, but I'm not WinRAR support.

@adamhathcock commented on GitHub (Jun 24, 2022): The errors are trying to be descriptive about what's wrong so that should help you to diagnose the issues. What you to do try to fix things is up to you. Sorry, but I'm not WinRAR support.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#528