[
  {
    "Id": "284741",
    "ThreadId": "82867",
    "Html": "<p><img alt=\"\"><img alt=\"\"><img alt=\"\">Hi Guys,</p>\r\n<p>I am using Ionic to extract simple zip files which have been renamed as MUP and suddenly started having the issue below. Can someone tell me the reason for the error?</p>\r\n<p>&nbsp;</p>\r\n<p>The file permissions etc are all ok.</p>\r\n<p>&nbsp;</p>\r\n<p><a title=\"ImageShack - Image And Video Hosting\" href=\"http://img704.imageshack.us/i/errorfmj.png/\"><img src=\"http://img704.imageshack.us/img704/3120/errorfmj.png\" border=0 alt=\"\"></a></p>\r\n<p>&nbsp;</p>\r\n<p>\r\n<pre>See the end of this message for details on invoking\r\njust-in-time (JIT) debugging instead of this dialog box.\r\n\r\n************** Exception Text **************\r\nSystem.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.\r\n   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark&amp; stackMark, Boolean isPermSet)\r\n   at System.Security.CodeAccessPermission.Demand()\r\n   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)\r\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)\r\n   at System.IO.File.OpenRead(String path)\r\n   at Ionic.Zip.ZipFile.get_ReadStream()\r\n   at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)\r\n   at Ionic.Zip.ZipFile.Read(String zipFileName, TextWriter statusMessageWriter, Encoding encoding, EventHandler`1 readProgress)\r\nThe action that failed was:\r\nDemand\r\nThe type of the first permission that failed was:\r\nSystem.Security.Permissions.FileIOPermission\r\nThe first permission that failed was:\r\n\r\n\r\nThe demand was for:\r\n\r\n\r\nThe granted set of the failing assembly was:\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nThe assembly or AppDomain that failed was:\r\nIonic.Zip, Version=1.7.2.21, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c\r\nThe method that caused the failure was:\r\nSystem.IO.Stream get_ReadStream()\r\nThe Zone of the assembly that failed was:\r\nInternet\r\nThe Url of the assembly that failed was:\r\nfile:///R:/Test/Ionic.Zip.DLL\r\n\r\n\r\n************** Loaded Assemblies **************\r\nmscorlib\r\n    Assembly Version: 2.0.0.0\r\n    Win32 Version: 2.0.50727.3603 (GDR.050727-3600)\r\n    CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll\r\n----------------------------------------\r\nAutomate\r\n    Assembly Version: 1.0.0.0\r\n    Win32 Version: 0.2.4.5\r\n    CodeBase: file:///R:/Automate.exe\r\n----------------------------------------\r\nSystem.Windows.Forms\r\n    Assembly Version: 2.0.0.0\r\n    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)\r\n    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\r\n----------------------------------------\r\nSystem\r\n    Assembly Version: 2.0.0.0\r\n    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)\r\n    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll\r\n----------------------------------------\r\nSystem.Drawing\r\n    Assembly Version: 2.0.0.0\r\n    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)\r\n    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\r\n----------------------------------------\r\nSystem.Configuration\r\n    Assembly Version: 2.0.0.0\r\n    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)\r\n    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\r\n----------------------------------------\r\nSystem.Xml\r\n    Assembly Version: 2.0.0.0\r\n    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)\r\n    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll\r\n----------------------------------------\r\nIupdate3dll\r\n    Assembly Version: 1.0.0.0\r\n    Win32 Version: 1.0.1.1\r\n    CodeBase: file:///R:/Test/Mydll.DLL\r\n----------------------------------------\r\nSystem.Web\r\n    Assembly Version: 2.0.0.0\r\n    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)\r\n    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll\r\n----------------------------------------\r\nIonic.Zip\r\n    Assembly Version: 1.7.2.21\r\n    Win32 Version: 1.7.2.21\r\n    CodeBase: file:///R:/Test/Ionic.Zip.DLL\r\n----------------------------------------\r\n\r\n************** JIT Debugging **************\r\nTo enable just-in-time (JIT) debugging, the .config file for this\r\napplication or computer (machine.config) must have the\r\njitDebugging value set in the system.windows.forms section.\r\nThe application must also be compiled with debugging\r\nenabled.\r\n\r\nFor example:\r\n\r\n\r\n    \r\n\r\n\r\nWhen JIT debugging is enabled, any unhandled exception\r\nwill be sent to the JIT debugger registered on the computer\r\nrather than be handled by this dialog box.</pre>\r\n</p>",
    "PostedDate": "2010-02-02T06:39:42.253-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "284834",
    "ThreadId": "82867",
    "Html": "<p>Hi Guys,</p>\r\n<p>Please ignore the above as i found the solution. The above error was caused by the fact that i was running the above on a network without giving Ionic FullTrust via Caspol. I ran the caspol [you can also do that from admin tools] and then tried again and it works like a charm!!!</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks again as the extraction is a charm with the dll.</p>",
    "PostedDate": "2010-02-02T09:07:51.75-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]