1

我尝试从存档中提取文件,但出现异常“System.ArgumentOutOfRangeException”。
我认为这可能是字符串中的问题,其中包含文件名。

var cpioExtractor = new SevenZipExtractor(archiveName);

我尝试手动输入文件的路径,它不会改变任何东西。
哪里可能有问题?

堆栈跟踪

在 System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
在 System.String.Substring(Int32 startIndex)
在 SevenZip.Formats.FormatByFileName(String fileName, Boolean reportErrors)
在 SevenZip.FileChecker.CheckSignature(String fileName, Int32&
在 SevenZip.SevenZipExtractor.Init(String archiveFullName)
在 SevenZip.SevenZipExtractor..ctor(String archiveFullName) 中的偏移量,布尔值& isExecutable )

4

0 回答 0