This project is read-only.

BC30456: 'Save' is not a member of 'zipfile'

Nov 23, 2009 at 8:45 PM

Hi all, just downloaded the latest release of the DotNetZip Library.  I extracted from the downloaded zip file the Ionic.Zip.dll and included it as a reference in my ASP.Net project.  When attempting to use the objects in the class, visual studio gives me full-blown intellisense, and i dont get any "squiggly's".  However, when I attempt to build my project, the build fails with the following error's:

BC30456: 'AddFile' is not a member of 'zipfile'
BC30456: 'Save' is not a member of 'zipfile'

Below is my code (VERY basic right now as Im trying to resolve this issue).  Any idea's what Im doing wrong to reference these librarys?  Do I need to install anything?

        Dim zip As New ZipFile()



Nov 23, 2009 at 8:54 PM
Edited Nov 23, 2009 at 8:55 PM

Just incase anyone was wondering, my imports statement is:


Nov 23, 2009 at 9:05 PM

Well Im stumped..

I just renamed my Imports to: "Imports Ionic"

When creating a new ZipFile object, I now declare it as:

Dim z as New Zip.ZipFile()

And now, when I attempt to use the AddFile or Save Method's, I can build my project.  Sorry for opening\closing my own thread, but this was so weird, I wasnt sure if I was the only person to run into this...

Nov 23, 2009 at 10:49 PM

Glad you found an answer. Not sure why you would have to do it that way.  But if it works for you, great!