I\'m trying to create a zip file that contains one or more files. I\'m using the .NET framework 4.5 and more specifically System.IO.Compression namespace. The objectiv
When I added a wrong name for the entry as in the example
var fileToZip = "/abc.txt"; ZipArchiveEntry zipFileEntry = zipArchive.CreateEntry(fileToZip);
I got the same error. After correcting the file name, it is ok now.