{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hi,\n \nsorry for my poor english, \nI'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.\n \nthis is your code in ZipFile.SaveSelfExtractor.cs:\n \n        internal static string GenerateTempPathname(string extension)\n        {\n            string candidate = null;\n            String AppName = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;\n            string parentDir = System.IO.Path.GetTempPath();  <------------------ exception System.Security.Permissions.SecurityPermission\n            int index = 0;\n            do\n            {\n                index++;\n                string Name = String.Format(\"{0}-{1}-{2}.{3}\",\n                        AppName, System.DateTime.Now.ToString(\"yyyyMMMdd-HHmmss\"), index, extension);\n                candidate = System.IO.Path.Combine(parentDir, Name);\n            } while (System.IO.File.Exists(candidate) || System.IO.Directory.Exists(candidate));\n \n            // this file/path does not exist.  It can now be created, as file or directory. \n            return candidate;\n        }\n \nis there a way to workaround this error?\n \nThank you for all\nFrancesco",
    "LastUpdatedDate": "2013-02-21T18:43:36.33-08:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-03-26T07:26:08.093-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Error permission on temp folder Asp.Net",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 10511
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "You should not use the temp path of the windows system when working with ASP.NET but should create a temp path within you asp.net application (or an other location the process has rights in). The ASP.NET process does not have rights on the Temp Folder of you windows system by default. \r\n\r\nYou can also use another user for the ASP.NET process to run under or grant the asp.net process rights in the temp folder, but both of those solutions I will not advise since you are taking risks regarding security.",
      "PostedDate": "2010-04-21T01:19:23.817-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:36.33-08:00",
      "Id": -2147483648
    }
  ]
}