[
  {
    "Id": "467892",
    "ThreadId": "219606",
    "Html": "<p>I'm currently using DotNetZip to zip a file in my asp.net application.&nbsp; When I use localhost using my local C: Drive works perfect, but when I use an UNC virtual directory, it doesn't work.&nbsp; Any feedback is greatly appreciated.</p>\r\n<p>Here's my code:</p>\r\n<p>// Variables...</p>\r\n<p>string filename =&nbsp;&nbsp; &quot;//servername/DIR1/whatever.net/helloworld/hello/FILE_INPUT/APX&quot; + DateTime.Today.ToString(&quot;yyyyMMdd&quot;) + HELLO_SEQ + &quot;.txt&quot;;</p>\r\n<p>string fileZipped = &quot;//servername/DIR1/whatever.net/helloworld/hello/FILE_UPLOAD/FTP.zip&quot;;</p>\r\n<p>// Method that performs the zip:</p>\r\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void zipfile(string filename, string fileZipped)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</p>\r\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (ZipFile zip = new ZipFile())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</p>\r\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ZipEntry e = zip.AddFile(filename);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.Save(fileZipped);</p>\r\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>",
    "PostedDate": "2010-07-15T09:57:00.67-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "474983",
    "ThreadId": "219606",
    "Html": "hi,\r\n\r\nThe simplest way is to map a network drive and avoid UNC. Alternatively you could either use Server.MapPath() function which returns the absolute path of your file.\r\n\r\n\r\n",
    "PostedDate": "2010-07-31T00:49:20.873-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "589094",
    "ThreadId": "219606",
    "Html": "<p>This appears to still be an issue (bug).&nbsp; I have an application that runs through hundreds of various UNC paths on various servers, all with permissions tightly locked down.&nbsp; I cannot simply remap from something like \\\\server\\share to \\\\server\\c$\\share.&nbsp;</p>\r\n<p>Is there a chance this will be fixed?</p>\r\n<p>Server.MapPath() appears to be an II6 feature???&nbsp; Is there something more suited for a Windows XP machine running .net 4 w/ no IIS?</p>\r\n<p>Thanks!</p>",
    "PostedDate": "2011-03-30T14:11:48.423-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "589202",
    "ThreadId": "219606",
    "Html": "<p>Whoops, the error is entirely on my end!&nbsp; So, I'm able to zip files with UNC paths with no problem.&nbsp;</p>\r\n<p>BTW, I'm migrating from Chilkat, and find your stuff much cleaner to use.&nbsp; Kudos!</p>",
    "PostedDate": "2011-03-30T20:12:50.45-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "593064",
    "ThreadId": "219606",
    "Html": "<p>Glad you sorted it.</p>\r\n<p>Thanks for the compliments, and good luck with your project.</p>",
    "PostedDate": "2011-04-06T12:55:50.353-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]