[
  {
    "Id": "170977",
    "ThreadId": "51022",
    "Html": "Hi Cheeso,<br>\r\n<br>\r\nThank you so much for the great component...<br>\r\n<br>\r\nI'm creating a very small web site. I'm using v1.7 (Ionic.Zip.dll comes with DotNetZipLib-Runtime-v1.7.zip). when I delopy to <strong>Full</strong> trust web site, it works fine? However, I get System.Security.Permissions.EnvironmentPermission in <strong>Medium</strong> trust web site.<br>\r\n<br>\r\nWhere can I download Medium trust dll file? <br>\r\n<br>\r\nThank you again!!!\r\n",
    "PostedDate": "2009-03-23T12:40:58.28-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "171641",
    "ThreadId": "51022",
    "Html": "Winmyan,  Hmmmm, I'm pretty sure the Ionic.Zip.dll was marked as partial trust. <br>\r\n<br>\r\nSystem.Security.Permissions.EnvironmentPermission can be returned when retrieving an environment setting is disallowed. <br>\r\n<br>\r\nThe library does this in only one place, as far as I know.  It calls System.IO.Path.GetTempPath() when setting the TempFileFolder property to the default value. <br>\r\n(This will implicitly retrieve the User Name from the environment). <br>\r\n<br>\r\nThe TempFileFolder property tells DotNetZip where to create temp files, and it's necessary to have it set when saving files to disk. <br>\r\n<br>\r\nIn ASP.NET scenarios, you normally have to set it to a directory for which the ASPNET user (or IUSR) has write permissions. <br>\r\n<br>\r\nIf you set it explicitly (with something like zip.TempFileFolder = &quot;c:\\\\writable_directory&quot;;)  then, DotNetZip will not have to set it to a default value, and as a result will not call GetTempPath() and I suspect that will avoid the EnvironmentPermission exception. <br>\r\n<br>\r\nCan you try that? <br>\r\n<br>\r\n",
    "PostedDate": "2009-03-24T18:20:36.077-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]