{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "When attempting to process tests contained in a xap created with Silverlight 5 (runtime version 5.0.60401.0), I was getting the following error:\n \nSending signal to Lighthouse Test Executor to start executing tests.\nError occured: CRC error: the file being extracted appears to be corrupted. Expected 0x68DBCE13, Actual 0x00000000\n \nSo the problem turned out to be in the way that MS creates its xap files in SL5.  By debugging the source I could see that the uncompressed size for the xap (zip) was not being written (during creation of the xap) to the expected location in the central directory header.  Consequently DotNetZip library was unable to calculate the CRC and was failing with the above error.\n \nTo get around the problem, I compiled my own version of the Lighthouse source with a small change that forces the zip library to perform a FullScan of the xap when it tries to read it in.  This fixes the problem as it seems to handle where to get the uncompressed size from if not in its usual place (compared to SL4 at least).  \nNB. I acknowledge that use of the FullScan property should be avoided for large archives as it will increase the time to uncompress.\n \nOld code:\n   ZipFile _zipFile = new ZipFile(xapFileFullPath);\n \nNew Code:\n            _zipFile = new ZipFile();\n            _zipFile.FullScan = true;\n            _zipFile.Initialize(xapFileFullPath);\n \nI have attached an example SL5 xap file.    Hope this helps",
    "LastUpdatedDate": "2013-11-07T14:46:33.967-08:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2011-08-16T03:51:36.453-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "CRC error when reading Silverlight 5 xap archive",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 2,
    "Id": 14101
  },
  "FileAttachments": [
    {
      "FileId": 4046,
      "FileName": "SilverlightTest1.xap",
      "DownloadUrl": ".\\4046"
    }
  ],
  "Comments": [
    {
      "Message": "I'm also seeing this, with files generated using rubyzip. It's VERY annoying, since the command-line unzip can unzip the files just fine... :(\r\n\r\nHaven't tried any of the alternatives (SharpZipLib & friends) yet.",
      "PostedDate": "2013-11-07T13:20:37.307-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Seemed to work well with the Unzip package from NuGet.",
      "PostedDate": "2013-11-07T14:46:33.967-08:00",
      "Id": -2147483648
    }
  ]
}