{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 81526.  The first binary release with this fix will be the release that follows v1.9.1.6. ",
    "ClosedDate": "2011-08-03T17:42:03.94-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hi,I'm using your library in Asp.net environment, and I have a problem when I use the method SaveSelfExtractor on a website hosting, this is because seeing the code below, using the method of the framework that I returned on a temporary directory, and I do not have the right to write, and throws the exception System.Security.Permissions.SecurityPermission.this is your code in ZipFile.SaveSelfExtractor.cs:\n \ninternal static string GenerateTempPathname(string extension){\nstring candidate = null;\nString AppName = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;\nstring parentDir = System.IO.Path.GetTempPath(); <------------------ exception System.Security.Permissions.SecurityPermission\nint index = 0;\ndo{index++;\nstring Name = String.Format(\"{0}-{1}-{2}.{3}\",AppName, System.DateTime.Now.ToString(\"yyyyMMMdd-HHmmss\"), index, extension);\ncandidate = System.IO.Path.Combine(parentDir, Name);\n} while (System.IO.File.Exists(candidate) || System.IO.Directory.Exists(candidate));\n// this file/path does not exist. It can now be created, as file or directory. \nreturn candidate;\n}\n \nis there a way to workaround this error?  Francesco",
    "LastUpdatedDate": "2013-05-16T05:31:50.783-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-03-30T09:30:51.18-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Error generating SFX within Asp.Net:  permissions on temp folder.",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 2,
    "Id": 10553
  },
  "FileAttachments": [
    {
      "FileId": 2824,
      "FileName": "log1.txt",
      "DownloadUrl": ".\\2824"
    }
  ],
  "Comments": [
    {
      "Message": "Thank you Cheeso,\r\n\r\nThis is the code snippet that I used, and I have attached the log file error:\r\n\r\n        Try\r\n1:          If Not Directory.Exists(DirectoryPath) Then\r\n2:              Directory.CreateDirectory(DirectoryPath)\r\n3:          End If\r\n\r\n14:         Using zip As New ZipFile\r\n15:             zip.AddDirectory(DirectoryPath, System.IO.Path.GetFileName(DirectoryPath))\r\n16:             zip.Comment = \"some comment\"\r\n\r\n18:             options.Flavor = SelfExtractorFlavor.ConsoleApplication\r\n19:             options.IconFile = sMappedPath & \"\\icofile.ico\"\r\n20:             options.DefaultExtractDirectory = \"%TEMP%\\\"\r\n21:             options.ExtractExistingFile = ExtractExistingFileAction.OverwriteSilently\r\n22:             options.PostExtractCommandLine = \"autoexec.exe\"\r\n23:             options.Quiet = True\r\n24:             options.RemoveUnpackedFilesAfterExecute = True\r\n25:             zip.TempFileFolder = Server.MapPath(\"public\") & \"\\aggwplus\\\" 'folder with permission write\r\n26:             strPath = zip.TempFileFolder\r\n27:             zip.SaveSelfExtractor(sMappedPath & \"\\aggwplus\\\" & archiveName, options)\r\n            End Using\r\n\r\n        Catch zipex As ZipException\r\n            Dim strErr As String\r\n            strErr = zipex.ToString & vbCrLf & \" [zpex line: \" & Err.Erl & \" ]\" & vbCrLf & _\r\n                        \"Path temp: \" & strPath\r\n            My.Computer.FileSystem.WriteAllText(sMappedPath & \"\\log.txt\", strErr, True)\r\n        Catch ex As Exception\r\n            Dim strErr As String\r\n            strErr = ex.ToString & vbCrLf & \" [ex line: \" & Err.Erl & \" ]\" & vbCrLf & _\r\n                        \"Path temp: \" & strPath\r\n            My.Computer.FileSystem.WriteAllText(sMappedPath & \"\\log.txt\", strErr, True)\r\n        End Try",
      "PostedDate": "2010-03-31T02:29:57.923-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-03-31T02:29:59.83-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-04-01T00:44:30.97-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-08-03T17:42:03.94-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:35.757-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:50.783-07:00",
      "Id": -2147483648
    }
  ]
}