XceedZipLib.XceedZipClass loZipper; try { loZipper = new XceedZipLib.XceedZipClass(); } etc....but if just the declaration is blowing up (if the COM object doesn't exist), then I think tha you have no choice but to put it all in the try/catch (or call another method from inside the try/catch that does everything that you need to have done).