{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "Seems like a problem with Windows&#63;   It could be a corrupted zip file, too.  This really is a topic for a discussion. It&#39;s not a workitem.  I&#39;m closing this. ",
    "ClosedDate": "2011-08-06T06:29:09.937-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "When I try to open a file using Windows Explorer that I have zipped using DotNetZip, I get this error:\n\"Windows cannot open the folder.  The Compressed (zipped) Folder 'filename' is invalid.\"\n \nThis happens both on my test server and on my real server.  I have tried \"Unblock\"ing the file in it's properties because it looks like Windows 7 blocks untrusted zip downloads.  That didn't help.  Also, I tried opening the file on Windows XP and got the same error.\n \nThe file does open fine in 7zip and all the files and folders are there.\n \nAny ideas?\n \nHere is my VB code:\n------------------------\n \n    Protected Sub ButtonDownload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonDownload.Click\n \n        zipAndSendSelectedTracks()\n \n    End Sub\n \n    Private Sub zipAndSendSelectedTracks()\n \n        'THIS CODE IS FROM:\n        'http://www.4guysfromrolla.com/articles/092910-1.aspx\n \n        'Zips several files into one .zip file for download.\n \n        'If cblFiles.SelectedItem Is Nothing Then\n        '    ' No options selected!\n        '    MyBase.DisplayAlert(\"You must select one or more files to download.\")\n        '    Exit Sub\n        'End If\n \n        ' Tell the browser we're sending a ZIP file!\n        Dim downloadFileName As String = String.Format(\"YourDownload-{0}.zip\", DateTime.Now.ToString(\"yyyy-MM-dd-HH_mm_ss\"))\n        Response.ContentType = \"application/zip\"\n        Response.AddHeader(\"Content-Disposition\", \"filename=\" & downloadFileName)\n \n        ' Zip the contents of the selected files\n        Using zip As New ZipFile()\n \n            '' Add the password protection, if specified\n            'If Not String.IsNullOrEmpty(txtZIPPassword.Text) Then\n            '    zip.Password = txtZIPPassword.Text\n \n            '    'This encryption is weak! Please see http://cheeso.members.winisp.net/DotNetZipHelp/html/24077057-63cb-ac7e-6be5-697fe9ce37d6.htm for more details\n            '    zip.Encryption = EncryptionAlgorithm.PkzipWeak\n            'End If\n \n            ' Construct the contents of the README.txt file that will be included in this ZIP\n            'Dim readMeMessage As String = String.Format(\"Your ZIP file {0} contains the following files:{1}{1}\", downloadFileName, Environment.NewLine)\n \n            ' Add the checked files to the ZIP\n            'For each selected item.\n            For x = 0 To Me.RadGridTracks.Items.Count - 1\n \n                'Pull checkbox to see if selected\n                Dim myCheckBox As CheckBox = Me.RadGridTracks.Items(x).FindControl(\"CheckBoxSelect\")\n                If Not IsNothing(myCheckBox) Then\n \n                    If myCheckBox.Checked = True Then\n \n                        'Pull the link to the full audio MP3 track for the selected song.\n                        Dim myLabel As Label = Me.RadGridTracks.Items(x).FindControl(\"lblLinkToFullAudio\")\n                        If Not IsNothing(myLabel) Then\n \n                            ' Record the file that was included in readMeMessage\n                            'readMeMessage &= String.Concat(vbTab, \"* \", myLabel.Text, Environment.NewLine)\n \n                            ' Now add the file to the ZIP (use a value of \"\" as the second parameter to put the files in the \"root\" folder)\n                            Dim strFullPath As String = myLabel.Text\n                            strFullPath = Server.MapPath(strFullPath)\n                            zip.AddFile(strFullPath, \"MP3s\")  ', \"Optional Folder Name to Put File in in Zip Folder\")\n \n                        End If\n \n                    End If\n \n                End If\n          \n            Next\n \n \n            '' Add the checked files to the ZIP\n            'For Each li As ListItem In cblFiles.Items\n            '    If li.Selected Then\n \n            '        ' Record the file that was included in readMeMessage\n            '        readMeMessage &= String.Concat(vbTab, \"* \", li.Text, Environment.NewLine)\n \n            '        ' Now add the file to the ZIP (use a value of \"\" as the second parameter to put the files in the \"root\" folder)\n            '        zip.AddFile(li.Value, \"Your Files\")\n \n            '    End If\n            'Next\n \n            'Add the README.txt file to the ZIP\n            'zip.AddEntry(\"README.txt\", \"Test\", Encoding.ASCII) 'readMeMessage, Encoding.ASCII)\n \n            Dim filesAdded As String = zip.Count.ToString\n \n            ' Send the contents of the ZIP back to the output stream\n            'zip.Save(\"C:\\Users\\Mark\\Desktop\\Tuneswoon\\Flash\\Temp.zip\")\n            zip.Save(Response.OutputStream)\n \n        End Using",
    "LastUpdatedDate": "2013-05-16T05:31:40.193-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-12-13T12:12:18.613-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "\"Windows cannot open the folder.  The Compressed (zipped) Folder 'filename' is invalid.\" error opening in Windows Explorer",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 12675
  },
  "FileAttachments": [
    {
      "FileId": 3661,
      "FileName": "Error.jpg",
      "DownloadUrl": ".\\3661"
    }
  ],
  "Comments": [
    {
      "Message": "In my case this error happened when I added a file to the ZIP and the file did not exist.  Make sure to check that each file exists before adding to the zip.",
      "PostedDate": "2010-12-29T13:20:34.29-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I am encountering the same issue.  I am using DLL v1.9.1.5 and I am having trouble opening it with Windows 7's Windows Explorer.  The file opens fine with 7-Zip, so it may just be a Windows 7 issue.  I verified that all files are present, have content, and do not have weird characters.",
      "PostedDate": "2011-06-02T11:32:10.4-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-08-06T06:29:09.937-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:20.337-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:40.193-07:00",
      "Id": -2147483648
    }
  ]
}