Zip file on medium trust level

Oct 29, 2009 at 10: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)

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

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.