{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hi,\n\nI am trying to zip contents of a source path (srcpath) and copy the zip file in destination path.  The code below works fine in my workstation where i have full access to the target path ( \"E:\\ASSETS50\\FLIX\") .  The value of \"srcpath\" and \"tarpath\" are mentioned in the web.config file.\n\nusing (ZipFile ioniczip = new ZipFile())\n                {\n                    ioniczip.AddSelectedFiles(\"*.*\", @srcpath, false);\n                    ioniczip.Save(@tarpath);\n                    ioniczip.Dispose();\n                    return true;\n                }\n\nThe code above works perfectly in my windows 7 work station.  But when we host it on a windows 2003 server running on IIS 6, the PL1790-SS.xxxxxxx.tmp file gets created.  But the zip file is not created.\n\nThe exception stack trace looks like as below.\n\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\n   at System.IO.File.Delete(String path)\n   at Ionic.Zip.ZipFile.RemoveTempFile()\n   at Ionic.Zip.ZipFile.CleanupAfterSaveOperation()\n   at Ionic.Zip.ZipFile.Save()\n   at Ionic.Zip.ZipFile.Save(String fileName)\n   at generateSCORM.zipfile.ExecCmd(String tarpath, String srcpath) in E:\\GenerateSCORMlatest\\zipfile.cs:line 73\n\nWhy am i not getting the compressed file? \n\nAny quick help would be greatly appreciated.",
    "LastUpdatedDate": "2014-05-29T08:36:25.39-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Unassigned",
      "Severity": 0,
      "Id": 0
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2014-05-28T01:53:07.03-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "unable to create zip file in windows server 2003",
    "Type": {
      "Name": "Unassigned",
      "Id": 5
    },
    "VoteCount": 1,
    "Id": 16854
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Any one, please help on this ASAP.  This is critical for me.\r\n\r\n",
      "PostedDate": "2014-05-28T06:37:56.683-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Well the first thing that comes to mind for me is security. When you're developing on your local workstation usually you're running in the context of an administrator which has full access to the system. I believe I can safely assume that this is a web app that you're running, what I would do to troubleshoot would be to give the account that is running the app pool for your project Full Control to the tarpath directory. If that works then I would begin to restrict permissions until you just get down to what you need.\r\n\r\nHope that gives you a few ideas of how to move forward.",
      "PostedDate": "2014-05-29T08:36:25.39-07:00",
      "Id": -2147483648
    }
  ]
}