[
  {
    "Id": "425296",
    "ThreadId": "207743",
    "Html": "<p>Hi,<br><br>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.<br><br>this is your code in ZipFile.SaveSelfExtractor.cs:<br><br>internal static string GenerateTempPathname(string extension)<br>{<br>string candidate = null;<br>String AppName = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;<br>string parentDir = System.IO.Path.GetTempPath(); &lt;------------------ exception System.Security.Permissions.SecurityPermission<br>int index = 0;<br>do<br>{<br>index++;<br>string Name = String.Format(&quot;{0}-{1}-{2}.{3}&quot;,<br>AppName, System.DateTime.Now.ToString(&quot;yyyyMMMdd-HHmmss&quot;), index, extension);<br>candidate = System.IO.Path.Combine(parentDir, Name);<br>} while (System.IO.File.Exists(candidate) || System.IO.Directory.Exists(candidate));<br><br>// this file/path does not exist. It can now be created, as file or directory. <br>return candidate;<br>}<br><br>is there a way to workaround this error?<br><br>Thank you for all<br>Francesco</p>",
    "PostedDate": "2010-03-30T00:29:16.21-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "425563",
    "ThreadId": "207743",
    "Html": "<p>Francesco, I think that may be a problem that you cannot work around, until I fix it.</p>\r\n<p>I'll have to look into it. &nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-03-30T09:29:24.027-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "425565",
    "ThreadId": "207743",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=10553\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2010-03-30T09:30:52.62-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]