I don't like this, but you can use conditional compilation, Debug / Release, or I use DebugComPlus / Debug / Release (where only Debug is not a ServicedComponent). Note that you must implement IDisposable in Debug mode, because you will have to call Dispose on ServicedComponent for the real code, and the Dispose method will not be if it is not ServicedComponent.
COM +, , , COM + , , COM+. , , , - . COM + .