0 votes
by (120 points)

The following line is generating an error:

using (ZipArchive zip = new ZipArchive(zipFilename, ArchiveOpenMode.Create))

Error is:

System.TypeLoadException: Could not load type 'nixp' from assembly 'Rebex.Common, Version=7.0.9048.0, Culture=neutral, PublicKeyToken=1c4638788972655d'.
at Rebex.IO.Compression.ZipArchiveOptions.rojk()
at Rebex.IO.Compression.ZipArchive..ctor(String zipFilePath, ArchiveOpenMode openMode)

This is a NET6 project with the following packages:



Can anyone help with this please?

Applies to: Rebex ZIP

1 Answer

0 votes
by (73.6k points)
edited by

Please ensure you have referenced both Rebex.Common.dll and Rebex.Zip.dll with same version and targeting same .NET (if you for example use Rebex.Common.dll for .NET Standard 2.0 and Rebex.Zip.dll for .NET 6.0, this error can happen).

...