Is anyone creating zip files for download within an Eikon Application Server WebApi application?
I've been trying to use DotNetZip, but am getting the following errors:
2014-06-12T17:42:55.802 ERROR Katana-9596 10 [Katana] Exception Occured. System.IO.FileLoadException: Could not load file or assembly 'file:///C:\EAE\data\1.0.9.6702\apps\ProductExplorer\0.8.4\Ionic.Zip.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\EAE\data\1.0.9.6702\apps\ProductExplorer\0.8.4\Ionic.Zip.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See
http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
I can probably get the source code down for DotNetZip (from
http://dotnetzip.codeplex.com) and work out what the depdencies are that are preventing the DLL from loading. But if someone already has a C# component for zipping files in memory (via Streams) that would be great!