these samples target dotnet 2.0 and 3.0... most sites have dotnet 4.x
Russ Suter
dotnet 4.x is backward compatible.
Make sure you have a reference to the correct library.
I dug up a stackoverflow article that addresses this. Interestingly, at the end of the article it uses basically the same code that I have provided above.
Use the DotNetZip library I suggested in the first post. It's open source and with it you can do what you need to do in 3 lines of code. The library is compatible with .net 2.0 and up.
:(