[
  {
    "Id": "91888",
    "ThreadId": "27544",
    "Html": "Hi,<br>\r\n<br>\r\n&nbsp;I was able to set the library up and use\r\nit instantly on one of my sites. However, when i do the same on another\r\nsite hosted on 1and1.com, which i believe uses medium trust level for\r\nall dotnet apps, i run into the following exception:<br>\r\n<br>\r\nServer Error in '/downloads' Application.<br>\r\nSecurity Exception<br>\r\nDescription:\r\nThe application attempted to perform an operation not allowed by the\r\nsecurity policy. To grant this application the required permission\r\nplease contact your system administrator or change the application's\r\ntrust level in the configuration file.<br>\r\n<br>\r\nException Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.<br>\r\n.....<br>\r\n.....<br>\r\n[SecurityException: That assembly does not allow partially trusted callers.]<br>\r\n<br>\r\nI\r\nspoke to the folks at 1and1, and they refuse to let my app run under\r\nanother security policy. I tried searching for ways to let my app run\r\nunder higher trust, but can't get it to work. I am a DotNet newbie, so\r\nmaybe i am missing something here. What can i do to make this work\r\neither at the application end or the assembly end?<br>\r\n<br>\r\nThanks in advance for the help :)<br>\r\n<br>\r\n-vishal. \r\n",
    "PostedDate": "2008-05-12T04:44:41.607-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "91890",
    "ThreadId": "27544",
    "Html": "Here's a sample of the code i am using:<br>\r\n<br>\r\n&lt;%@ Page language=&quot;vb&quot; runat=&quot;server&quot; explicit=&quot;true&quot; strict=&quot;true&quot; %&gt;<br>\r\n&lt;script language=&quot;vb&quot; runat=&quot;server&quot;&gt;<br>\r\n&nbsp;&nbsp;&nbsp; Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs)<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Clear()<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.ContentType = &quot;text/plain&quot;<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim outputFile As String = Request.QueryString(&quot;outputfile&quot;)<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim outputFileName As String = Server.MapPath(outputFile)<br>\r\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Response.Write(outputFileName)<br>\r\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Response.Write(Server.MapPath(&quot;App_Code/AssemblyInfo.vb&quot;))<br>\r\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Dim zipUtil As New Ionic.Utils.Zip.ZipFile(outputFileName)<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zipUtil.TempFileFolder = Server.MapPath(&quot;App_Data&quot;)<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zipUtil.AddFile(Server.MapPath(&quot;test1.txt&quot;), &quot;&quot;)<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zipUtil.AddFile(Server.MapPath(&quot;test2.txt&quot;), &quot;&quot;)<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zipUtil.Save()<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zipUtil.Dispose()<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zipStatus = &quot;successfully zipped the file.&quot;<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(zipStatus &amp; &quot; : &quot; &amp; outputFileName)<br>\r\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Response.End<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'End Try<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp; End Sub&nbsp;&nbsp; <br>\r\n&lt;/script&gt;<br>\r\n<br>\r\n<br>\r\n",
    "PostedDate": "2008-05-12T04:46:41.857-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "92723",
    "ThreadId": "27544",
    "Html": "This is now a work item. <br>\r\n<a href=\"http://www.codeplex.com/DotNetZip/WorkItem/View.aspx?WorkItemId=4698\">http://www.codeplex.com/DotNetZip/WorkItem/View.aspx?WorkItemId=4698</a>\r\n",
    "PostedDate": "2008-05-15T08:57:57.67-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]