First of all thank you for your fine library !
i have been trying to do the following:
using a vb.net 4.0 webapp
the DotNetZipLib-DevKit-v1.9 DLL
- on the server side, loop through a list of file names on the server, add them to a zip file and output a selfextractor .exe file for a user to download the file to his local drive and extract it.
i have tried collecting all kinds of examples of code to achieve this, using this method, i can download archive.exe but when i try to open it on vista (as administrator) i get this error:
16 bit MS-DOS Subsystem
"The NTVDM CPU has encountered an illegal instruction.
CS:127c IP:09ee OP:63 32 6c 30 5a Choose 'close' to terminate the application"
if i click ignore then the command window just stays open and nothing happens.
can you try and help ? thanks
here is the code i use:
Protected Sub Download1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Download1.Click
Dim emptyCheckboxList As Boolean = False
Dim ItemsNum As Int32 = chklst.Items.Count()
Response.BufferOutput = False
Response.AddHeader("Content-disposition", "attachment; filename=" + "archive.exe")
Response.AddHeader("Content-Description", "File Transfer")
Response.ContentType = "application/exe"
Using zip As New ZipFile()
For Each lstItem In chklst.Items
If lstItem.Selected = True Then
emptyCheckboxList = True
debug1.Text = debug1.Text & "downloaded: " & lstItem.ToString & "<br />"
If emptyCheckboxList = False Then
ErrorLbl.Text = "No File was chosen for download, please select files "
ErrorLbl.Text = ""
Catch ex As Exception
ErrorLbl.Text = "Download_Click: " & ex.Message