Keep getting file not found errors

Jan 12, 2012 at 7:57 PM

I keep getting the following error when I run DotNetZip code to zip files:

Locating source for 'c:\DotNetZip\Zip\ZipFile.cs'. Checksum: MD5 {8d 9 d5 d7 90 f4 e1 95 b0 9d 93 84 c0 95 d4 2b}
The file 'c:\DotNetZip\Zip\ZipFile.cs' does not exist.
Looking in script documents for 'c:\DotNetZip\Zip\ZipFile.cs'...
Looking in the projects for 'c:\DotNetZip\Zip\ZipFile.cs'.
The file was not found in a project.
Looking in directory 'c:\Program Files\Microsoft Visual Studio 9.0\VC\crt\src\'...
Looking in directory 'c:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\src\mfc\'...
Looking in directory 'c:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\src\atl\'...
Looking in directory 'c:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\DotNetZip\Zip\ZipFile.cs.
The debugger could not locate the source file 'c:\DotNetZip\Zip\ZipFile.cs'.

I have a reference to Ionic.Zip and I am just trying run the following like the examples on the DotNetZip website:

                   using (var zip = new ZipFile())
                    {

                        zip.AddFile(localPath+LocalRenamedFile);
                        zip.Save(ZipFileToCreate);
                    }

 

what I'm I doing wrong here?

Thanks

Nick

Mar 30, 2012 at 5:54 PM

I had the same error over and over, I had downloaded the DotNetZipLib-DevKit-v1.9.

To solved it I downloaded the DotNetZip-Runtime-v1.9.msi ,  added the reference and it solved my problem.

I hope this works for you.