{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 21760.  I think all I need to do is add the APTCA to the AssemblyInfo.cs  \n\nThis is in the v1.6 preview, and will be in the v1.6 final release.",
    "ClosedDate": "2008-08-01T16:45:56.743-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hi,\n \n  Thanks for creating this wonderful lib. I was able to set it up and use it instantly on one of my sites. However, when i do the same on another site hosted on 1and1.com, which i believe uses medium trust level for all dotnet apps, i run into the following exception:\n \nServer Error in '/downloads' Application.\nSecurity Exception\nDescription: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.\n \nException Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.\n.....\n.....\n[SecurityException: That assembly does not allow partially trusted callers.]\n \nI spoke to the folks at 1and1, and they refuse to let my app run under another security policy. I tried searching for ways to let my app run under higher trust, but can't get it to work. I am a DotNet newbie, so maybe i am missing something here. What can i do to make this work either at the application end or the assembly end?",
    "LastUpdatedDate": "2013-05-16T05:32:46.587-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2008-05-12T04:34:11.73-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Security Exception on Shared Hosting Environment",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 3,
    "Id": 4698
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "I think what you ask for here is reasonable.  But this is going to require some testing, so I won't be able to get to it quickly. ",
      "PostedDate": "2008-05-15T08:59:02.013-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-05-16T19:59:23.797-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Yeap. Same issue here. Though I can provide some more details. When the save() method is called the library is trying to access either GAC or using the \\system32\\inetserv\\ directory for temp file creation (which I doubt).\r\n\r\nAccess to the path 'c:\\windows\\system32\\inetsrv\\3rttkp1o.3zy' is denied.\r\n\r\nThe error above is thrown (remember, this only happens in shared hosting environments. I did not receive this problem on development and staging servers). The file name is different each time the error is thrown.\r\n\r\nCheers\r\n\r\nAnd, yeah, thank you so much for creating this awesome library. It saved me a ton of time and is an amazing example for us.",
      "PostedDate": "2008-05-16T20:02:23.437-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Hey, icy, some further thoughts on this.  I think maybe your problem is a little different.  \r\nThe file in question is a temporary file that is created during the Save() operation.  A while back I added the TempFileFolder property on the ZipFile class.  This allows you to set the directory that will hold the temporary file.  Have you tried that?  If you are saving a zip file, then presumably there is a directory to which you can write, even in 1and1 hosted environment. \r\n\r\nSecond thing - it is possible within an ASP.NET environment to save directly to the Response.OutputStream.  This would eliminate the temporary file altogether. See the example on the examples page. To get this feature, you need the latest v1.5 preview release. \r\n\r\nLet me know if this solves your problem, icy.\r\n\r\nThe Partially Trusted Callers thinig is something different though.  that still needs attention. \r\n ",
      "PostedDate": "2008-06-04T13:37:09.897-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-07-31T01:38:48.633-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-08-01T16:45:56.743-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:51.147-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:46.587-07:00",
      "Id": -2147483648
    }
  ]
}