{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": "2009-10-12T05:45:14.38-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "Error whilst trying to create sfx with multiple large zips on windows 2003 platform using v1.8.4.24\nThis behaviour works correctly on XP pro  platform and also works correctly on win 2003 using previous release v1.8.4.14\n \nTemp ionic extraction cs file attached\n \n****************************************************\nError Message:\nErrors compiling the extraction logic!  C:\\Documents and Settings\\nicholas\\\nLocal Settings\\Temp\\2\\Ionic.Zip-2009Oct10-124502-1.cs\n****************************************************\nError StackTrace:\n   at Ionic.Zip.ZipFile._SaveSfxStub(String exeToGenerate, SelfExtractorFlavor f\nlavor, String defaultExtractLocation, String postExtractCmdLine, String nameOfIc\nonFile)\n   at Ionic.Zip.ZipFile.SaveSelfExtractor(String exeToGenerate, SelfExtractorFla\nvor flavor, String defaultExtractDirectory, String postExtractCommandToExecute,\nString iconFile)\n   at Ionic.Zip.ZipFile.SaveSelfExtractor(String exeToGenerate, SelfExtractorFla\nvor flavor)\n   at ICR.IVR.UTTERANCEARCHIVER.ZipAndArchive2.BuildZip(List`1 filepaths, String\n zipFullName, String passWord, Boolean encryptAES256, Boolean selfextractexe, Li\nst`1 ammendedFileNames)\n   at ICR.IVR.UTTERANCEARCHIVER.UtteranceArchiver.Archive()\n   at ICR.IVR.UTTERANCEARCHIVER.CMDUTILITY.UtteranceArchiverCMDUtility.ShowMenu(\n)\n   at ICR.IVR.UTTERANCEARCHIVER.CMDUTILITY.UtteranceArchiverCMDUtility.Main(Stri\nng[] args)\n****************************************************",
    "LastUpdatedDate": "2013-05-16T05:32:04.327-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2009-10-10T05:02:17.703-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Errors compiling the extraction logic - Ionic.Zip.ZipFile._SaveSfxStub v1.8.4.24",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 8966
  },
  "FileAttachments": [
    {
      "FileId": 2352,
      "FileName": "Ionic.Zip-2009Oct10-124502-1.cs",
      "DownloadUrl": ".\\2352"
    },
    {
      "FileId": 2356,
      "FileName": "Ionic.Zip-2009Oct10-204258-1.cs",
      "DownloadUrl": ".\\2356"
    },
    {
      "FileId": 2359,
      "FileName": "DotNetZip-v1.8.4.2502.zip",
      "DownloadUrl": ".\\2359"
    },
    {
      "FileId": 2360,
      "FileName": "Ionic.Zip-2009Oct11-103217-1.cs",
      "DownloadUrl": ".\\2360"
    }
  ],
  "Comments": [
    {
      "Message": "I'm doing code inspection now... ",
      "PostedDate": "2009-10-10T09:39:38.98-07:00",
      "Id": -2147483648
    },
    {
      "Message": "If you can run your app with this version of the DLL, we may be able to track down the problem.  This probably won't fix it, but it will give me specific error information.  It'll be embedded in the generated .cs file, so you'll have to upload another one, after the error occurs.\r\n",
      "PostedDate": "2009-10-10T10:30:25.497-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-10-10T10:30:27.44-07:00",
      "Id": -2147483648
    },
    {
      "Message": "As requested - re-run with the v1.8.4.2500 dll. Same issue (as suspected). Generated cs file uploaded \r\n",
      "PostedDate": "2009-10-10T13:00:32.987-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-10-10T13:00:35.287-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Hey Nick, my mistake, that didn't work. Same deal again.  Use v1.8.4.2501 . \r\n",
      "PostedDate": "2009-10-10T17:11:20.633-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-10-10T17:11:23.607-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-10-10T17:11:36.383-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-10-10T23:57:59.58-07:00",
      "Id": -2147483648
    },
    {
      "Message": "I mean 1.8.4.2502",
      "PostedDate": "2009-10-10T23:58:31.16-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-10-10T23:58:35.427-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Hey Cheeso, latest generated extraction logic file uploaded - using v1.8.4.2502",
      "PostedDate": "2009-10-11T02:39:02.01-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-10-11T02:39:07.917-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Ok, thanks - I can see the error it reports very clearly now.  You can see it too - it's in the comments appended to the end of that file. I have to think a bit about it. ",
      "PostedDate": "2009-10-12T01:46:24.26-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Nick, you're getting CS1583:  \"CSCxxx.tmp is not a vaild Win32 resource file\"\r\n\r\nThe problem is being reported by the CVTRES.exe tool.  \r\n \r\nThe major change introduced between v1.8.4.14 and v1.8.4.24 in the self-extracting archive logic was to always include a win32 icon file generated SFX. This was done to satisfy requests from the community.  Previously the generated SFX had no icon associated to it, and it didn't look good in Explorer and so on.  So in some version of DotNetZip between 1.8.4.14 and 1.8.4.24, I changed the logic to always insert an icon.  You can specify a custom icon, or just get the default dotnetzip icon.\r\n\r\nHow is this done?  It may be surprising, but DotNetZip runs the C# compiler at runtime, to produce the SFX file.  Including an icon in the generated exe is done by adding the /win32icon switch to the compiler command line.\r\n\r\nWhen the /win32icon option is present, the csc.exe compiler invokes the cvtres.exe tool, to convert the .ico file into a \"resource\" file.  All of this is pretty transparent and automatic if you just run the C# compiler, either with Visual Studio, or on the command line.  It should also be pretty transparent and automatic if you create a self-extracting archive using DotNetZip.\r\n\r\nIt is, for some reason, not transparent on one of your machines. \r\n\r\nI looked around and found this:  \r\n\r\nhttp://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=c3f2be2b-2794-404a-9ade-494b4a792bda\r\n\r\nIn short, the same problem was occurring.  Apparently the cause was a bad install of .NET - maybe some older version not completely uninstalled. \r\n\r\nIf your problem is similar, it is not a problem in DotNetZip that causes it.  \r\n\r\nI have 3 suggestions: \r\n\r\n1. check disk space on the server. Some have said this problem occurs in low-disk space conditions.  \r\n\r\n2. Try to \"repair\" the .NET installation on the machine on which the problem occurs. You would do this through the appwiz.cpl control panel applet, I think.  Also verify that you have installed the latest .NET servicepack on that WS2003 machine.  \r\n\r\n3. If those do not solve the problem, you may possibly be able to avoid the problem by specifying a different icon file.  This post\r\nhttp://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/4217bec6-ea65-465f-8510-757558b36094\r\nseems to suggest the icon file itself as the source of the problem.  If so, you may solve the problem by specifying a simple custom icon file of your own in the call to SaveSelfExtractor().\r\n\r\n----\r\n\r\nYou might also try running the cvtres.exe tool standalone - from the command line, just to see if it works properly. \r\n",
      "PostedDate": "2009-10-12T02:50:10.093-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Yep just looked at them now. One of the changes in this build was the addition of the icon file?  I've seen a similar error posted elewhere due to vista compression of the icon file... just a thought.",
      "PostedDate": "2009-10-12T02:50:24.36-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Hey Cheeso, thats the article i came across. I'll double check the runtime. This issue is happening on 2 separate win 2003 boxes... but i suspect they are both setup the same. Unfortunately as one is live.. I may not be able to update the box. If thats the case, I'll look into adding my own icon file and see if this bypasses the issue. ",
      "PostedDate": "2009-10-12T03:19:29.687-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Hey Cheeso, I can confim that the issue is with the .Net 2.0 framework version we were runing on the live win 2003 boxes. It was the original version. Having upgraded to .net 2.0 SP2 the SFX's build correctly. Thanks for all the help in identifying the issue. I think this work item can safely be closed now.\r\nCheers Nick",
      "PostedDate": "2009-10-12T05:19:47.347-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-10-12T05:45:14.38-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:56.223-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:04.327-07:00",
      "Id": -2147483648
    }
  ]
}