I'm currently using DotNetZip to zip a file in my asp.net application. When I use localhost using my local C: Drive works perfect, but when I use an UNC virtual directory, it doesn't work. Any feedback is greatly appreciated.
Here's my code:
string filename = "//servername/DIR1/whatever.net/helloworld/hello/FILE_INPUT/APX" + DateTime.Today.ToString("yyyyMMdd") + HELLO_SEQ + ".txt";
string fileZipped = "//servername/DIR1/whatever.net/helloworld/hello/FILE_UPLOAD/FTP.zip";
// Method that performs the zip:
public static void zipfile(string filename, string fileZipped)
using (ZipFile zip = new ZipFile())
ZipEntry e = zip.AddFile(filename);