I'm trying to create a zip file in C# using the Windows Shell API (Shell32.dll) with essentially the same code as in the threadÃÂ titled ("Problem creating Zip File using Shell32.dll" by user "Jeyaraj" - see provided link below)
The code works completely fine on one workstation, but fails in another.ÃÂ I receive a "File Not Found Exception" on the call
Shell32.Folder DestFlder = sc.NameSpace(TempPath + "\\" + ZipFileName);
I can verify visually that an empty zip archive is available in the specified target destination directory, but the above command consistently fails.
I am running Windows XP ProÃÂ SP2 with Visual Studio 2005 and .NET Frameworks 1.1 and 2.0 installed.ÃÂ However, the above code works okay on my other workstation with XP Pro SP2 with Visual Studio 2003 and .NET Framework 1.1.ÃÂ I've also verified that I have exactly the same version of the Shell32.dll on both machines.
Any ideas on why I'm getting this error on one machine but not the other?
Thanks for any and all suggestions!
View Complete Post