The type initializer for 'Ionic.Zip.ZipFile' threw an exception.

Nov 14, 2011 at 6:50 PM


I just downloaded the "Zip" bits for Silverlight (v1.9).

In my Silverlight applicatin I am referencing, "Iconic.Zip.dll". In the code I am doing this

ZipFile zip = new ZipFile();

At this line I get a run-tim exception: "The type initializer for 'Ionic.Zip.ZipFile' threw an exception.".

What am I doing wrong?





Jun 7, 2012 at 11:37 AM
Edited Jun 7, 2012 at 11:45 AM

Good day.

I am getting the same problem in my project.

Is there anyone that knows how to get rid of this error.

Thanks in advance


using (ZipFile zipFile = new ZipFile())
                foreach (string item in ZipPackage_List)
                zipFile.Save("Raster_" + DateTime.Now + ".zip");