[
  {
    "Id": "182309",
    "ThreadId": "54120",
    "Html": "Hi,<div>I've used DotNetZip v 1.7 in a .NET 2.0 application that store zip file in a share folder.</div><div><br></div><div>Occasionally the zip created is not accessible... :(</div><div>The properties of that zip contain only the General Tab.</div><div>The Security Tab is not present and the client that access on this share folder can see this zip but access is denied...</div><div><br></div><div>Anyone have this problem?</div><div><br></div><div>The code that I used is:</div><div><br></div><div><div><span style=\"white-space:pre\">\t\t</span>Using zip As New Ionic.Zip.ZipFile(Me.CmpName)</div><div>                        With zip</div><div>                            .Password = Me.GetPwd</div><div><br></div><div>                            For Each s As String In My.Tools.Cmp.CmpFileList</div><div>                                If s.Contains(&quot;*&quot;) Then</div><div>                                    Dim dirInfo As New System.IO.DirectoryInfo(Me.WorkPath)</div><div>                                    For Each fInfo As FileInfo In dirInfo.GetFiles(s)</div><div>                                        .AddFile(fInfo.FullName, &quot;&quot;)</div><div>                                    Next</div><div>                                Else</div><div>                                    If File.Exists(FilePath.PATH_Combine(Me.WorkPath, s)) Then</div><div>                                        .AddFile(FilePath.PATH_Combine(Me.WorkPath, s), &quot;&quot;)</div><div>                                    End If</div><div>                                End If</div><div>                            Next</div><div><br></div><div>                            Try</div><div>                                .Save()</div><div>                                FilePath.EraseFile(BakFile)</div><div>                            Catch ex As System.Exception</div><div>                                Throw New CmpCloseDotZipException(ex.Message)</div><div>                            Finally</div><div>                                If File.Exists(BakFile) Then</div><div>                                    File.Delete(Me.CmpName)</div><div>                                    File.Move(BakFile, Me.CmpName)</div><div>                                End If</div><div>                            End Try</div><div>                        End With</div><div>                    End Using</div><div><br></div><div><br></div><div>Thanks!</div><div><br></div><div>Dario</div></div>",
    "PostedDate": "2009-04-22T06:12:44.613-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "182370",
    "ThreadId": "54120",
    "Html": "I have found the problem.<div><br></div><div>If I pass a FileStream to Save Method the permission are ok...otherwise... not.</div><div><br></div><div>So... </div><div><br></div><div><span style=\"white-space:pre\">\t\t</span>Using fs as New FileStream(Me.CmpName, FileMode.CreateNew)</div><blockquote style=\"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\"><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\"><span style=\"white-space:pre\">\t\t</span>Using zip As New Ionic.Zip.ZipFile()</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                        With zip</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                            .Password = Me.GetPwd</span><br><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                            For Each s As String In My.Tools.Cmp.CmpFileList</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                If s.Contains(&quot;*&quot;) Then</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                    Dim dirInfo As New System.IO.DirectoryInfo(Me.WorkPath)</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                    For Each fInfo As FileInfo In dirInfo.GetFiles(s)</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                        .AddFile(fInfo.FullName, &quot;&quot;)</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                    Next</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                Else</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                    If File.Exists(FilePath.PATH_Combine(Me.WorkPath, s)) Then</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                        .AddFile(FilePath.PATH_Combine(Me.WorkPath, s), &quot;&quot;)</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                    End If</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                End If</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                            Next</span><br><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                            Try</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                .Save(fs)</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                FilePath.EraseFile(BakFile)</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                            Catch ex As System.Exception</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                Throw New CmpCloseDotZipException(ex.Message)</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                            Finally</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                If File.Exists(BakFile) Then</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                    File.Delete(Me.CmpName)</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                    File.Move(BakFile, Me.CmpName)</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                                End If</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                            End Try</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                        End With</span><br><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">                    End Using</span><br></blockquote><blockquote style=\"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\"><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\"><span style=\"white-space:pre\">\t</span>End Using</span></blockquote><blockquote style=\"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\"><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\"><br></span></blockquote><blockquote style=\"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\"><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">but... Why?</span></blockquote><blockquote style=\"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\"><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\"><br></span></blockquote><blockquote style=\"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\"><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">Thanks!</span></blockquote><blockquote style=\"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\"><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\"><br></span></blockquote><blockquote style=\"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\"><span style=\"color:rgb(48, 51, 45);font-family:'segoe ui';font-size:13px\">Dario</span></blockquote>",
    "PostedDate": "2009-04-22T08:23:07.13-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "184621",
    "ThreadId": "54120",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=7703\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2009-04-28T10:39:47.363-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]