This project is read-only.

Zip error

Mar 22, 2011 at 1:45 AM

Hi

I'm using VS2008 on Win7 64 bit.

When I click 'create zip file' i receive an error - "File xxxxxxxxx could not be created".

I'm not a C user so I'm having trouble following through teh code to figure out whats going wrong.

Anyone else had this problem?

 

regards

Mar 22, 2011 at 2:54 AM
Edited Mar 22, 2011 at 3:35 AM

The error is thrown by     private void btnCreateZipFile_Click(object sender, System.EventArgs e)

and errors with this call-

 archive.CreateArchive(_data.Value(ZipFormData.DataName.SZPath),
                    _data.SolutionFilePath, _includeFilePaths,
                    (this.chkFullPathInfo.Checked == false));

I can manually create the folder so it has write permission. Have tried ICSharpCode.SharpZipLib component v0.86.0.0 but same result.

Adde in a ref to sys.windows.forms so I could add some message boxes to track whats was going on in the ZipArchive module however when recompiled and copied to the run folder, its now all working.

Deleted references and message boxes and still working. No idea why as it was all re-compiled before I started mucking about inside it...

 

So its all good under Windows 7 64 bit