This project is read-only.

Zip file on medium trust level

Oct 29, 2009 at 11:04 AM

We want to zip file on medium trust level, but when call AddDirectoryByName, there will cause security exception:


System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.File.GetLastWriteTimeUtc(String path) at Ionic.Zip.ZipEntry.Create(String filename, String nameInArchive, Boolean isStream, Stream stream) at Ionic.Zip.ZipFile.AddDirectoryByName(String directoryNameInArchive)

Oct 29, 2009 at 12:41 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Oct 29, 2009 at 12:47 PM

This is a bug.  I've fixed it in the source.  You will be able to get the fix in v1.9.0.29, later today.