This is a migrated thread and some comments may be shown as answers.

Don´t create ZIP at IIS

1 Answer 63 Views
ZipLibrary
This is a migrated thread and some comments may be shown as answers.
Paulo Goncalves
Top achievements
Rank 2
Paulo Goncalves asked on 13 Mar 2014, 12:30 AM
Hi, i am ziping some .pdf files to after download, when I run at VS2010 the zip was create correct, but when deploy at server the zip was create with 1kb, the WinRar open and show an empty zip file. I donĀ“t receive any error. If I create a small file(10MB) work well, the zip have about 70MB. But at production should be create zips with 1GB or more.

I tried in 2 servers, both with 8GB ram and Win 2008 64 bits.

Dim ArqZip As String = "Order.zip"
Dim Package As ZipPackage = ZipPackage.CreateFile(PathCart & ArqZip)
  
For Each ArqPDF In ArqsPDF
    Try
                       Package.Add(CaminhoCart & ArqPDF)
        Catch ex as exception
                        TextNotifi.Text = ex.Message
                        TextNotifi.Height = 150
                        TextNotifi.Show()
                        Exit For
        End Try
Next
  
Package.Close(False)


The ArqsPDF is a ArrayList with filenames

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 18 Mar 2014, 09:52 AM
Hi Paulo ,

Please note that there is currently a 2GB limit for all CLR objects, no matter what OS you are running on 32 / 64 bit. There is also a practical limit, dependent on the current system conditions, (memory fragmentation) that limits the growth to the largest continuous block of memory available.

Could you please verify that you do nto create larger that 2BG CLR object?

Regards,
Maria Ilieva
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
ZipLibrary
Asked by
Paulo Goncalves
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Share this question
or