'ZipFile' is ambiguous in the namespace 'Ionic.Zip'

Jul 16, 2009 at 3:57 PM

I may just be being incredibly dim today, but I am getting the following error when using DotNetZip in my VB project.

'ZipFile' is ambiguous in the namespace 'Ionic.Zip'

I have downloaded the msi, installled the software and added a reference to the DLLs in my project.

Then when I copied the code from the samples page I got the error. What am I doing wrong?


Using zip As ZipFile = New ZipFile()
End Using

Jul 16, 2009 at 7:21 PM

I don't know why that's happening, there must be something else in your project that is conflicting.

it may help if you fully qualify the ZipFile class:  Ionic.Zip.Zipfile. 

Also, insure you are using the latest DotNetZip.

Jul 17, 2009 at 1:33 PM

I did try the fully qualified path and I am still getting the same ambiguity.

I downloaded the latest version from the site yesterday afternoon.

Still stumped! :(

Jul 17, 2009 at 1:42 PM

SOLVED! When I checked the project references I had references to Ionic.Zip and Ionic.Zip.Partial. I removed the reference to Ionic.Zip.Parial and it now works.

Jul 17, 2009 at 5:09 PM

Great, glad to hear it.  Since you have the Partial dll, I guess you have the source distribution.  That's really just an intermediate build output.

Glad you've got it working now.