Don´t create ZIP at IIS

2 posts, 0 answers
  1. Paulo Goncalves
    Paulo Goncalves avatar
    26 posts
    Member since:
    Aug 2004

    Posted 12 Mar 2014 Link to this post

    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 = ""
    Dim Package As ZipPackage = ZipPackage.CreateFile(PathCart & ArqZip)
    For Each ArqPDF In ArqsPDF
                           Package.Add(CaminhoCart & ArqPDF)
            Catch ex as exception
                            TextNotifi.Text = ex.Message
                            TextNotifi.Height = 150
                            Exit For
            End Try

    The ArqsPDF is a ArrayList with filenames
  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 18 Mar 2014 Link to this post

    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?

    Maria Ilieva

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

Back to Top