{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hello, \nWindows Server 2008 R2 x64 SP1. MS Visual Studio 2012 Update 4, C#.\n\nI'm attempting to compress a single KML file so that I can then rename the ZIP file into a KMZ file for use with Google Earth.\n\nThe user indicates the path and file name of the KMZ file. I use PATH.CHANGEEXTENSION to change the file extension KMZ to KML so the data I want to export to Google Earth is stored in a KML file. I then take the KML file insert it into a ZIP file and the ZIP files extension is then renamed to KMZ. \n\nThe problem is my custom solution runs as an extension against other software. What's happening is when the code hits the ZIP.SAVE routine the path being used by IONIC is defaulting to the path of the application running my extension instead of the path provided. I do not see this behavior on my W7 x64 or 32 systems. \n\nERROR MESSAGE GENERATED:\nSource: Ionic.Zip\nMessage: C:\\Program Files (x86)\\ArcGIS\\Desktop10.1\\TEST.kml\nStackTrace:    at Ionic.Zip.SharedUtilities.GetFileLength(String fileName)\n   at Ionic.Zip.ZipEntry.MaybeUnsetCompressionMethodForWriting(Int32 cycle)\n   at Ionic.Zip.ZipEntry.WriteHeader(Stream s, Int32 cycle)\n   at Ionic.Zip.ZipEntry.Write(Stream s)\n   at Ionic.Zip.ZipFile.Save()\n   at Ionic.Zip.ZipFile.Save(String fileName)\n   at Common.Forms.GEExport.btnExport_Click(Object sender, RoutedEventArgs e) in c:\\Common\\Forms\\GEExport.xaml.cs:line 165\nTargetSite: Int64 GetFileLength(System.String)\n\n```\nkmlfile = \"E:\\\\Testing\\\\SQL\\\\TEST.kml\"\n@Path.ChangeExtension(kmlfile, \"zip\") = \"E:\\\\Testing\\\\SQL\\\\TEST.zip\"\n@Path.GetFileName(kmlfile)\t\"TEST.kml\"\n\nTHE LOCALFILENAME IS INCORRECT:\n\n_LocalFileName = \"C:\\\\Program Files (x86)\\\\ArcGIS\\\\Desktop10.1\\\\TEST.kml\"\n\nit should be \"E:\\\\Testing\\\\SQL\\\\TEST.zip\"\n\n              using (ZipFile zip = new ZipFile(@Path.ChangeExtension(kmlfile, \"zip\")))\n              {\n                zip.CompressionLevel = Ionic.Zlib.CompressionLevel.BestCompression;\n                zip.AddFile(@Path.GetFileName(kmlfile));\n                zip.Save(@Path.ChangeExtension(kmlfile,\"zip\"));\n              }\n\n```\n\nGreg",
    "LastUpdatedDate": "2013-11-20T11:37:27.707-08:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Unassigned",
      "Severity": 0,
      "Id": 0
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2013-11-20T11:30:44.353-08:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Save path is hijacked",
    "Type": {
      "Name": "Unassigned",
      "Id": 5
    },
    "VoteCount": 1,
    "Id": 16524
  },
  "FileAttachments": [],
  "Comments": []
}