I create MMC snapin using C#. Everything works fine until I try to access any MMC COM objects from another thread. I get exception which says:

An unhandled exception of type 'System.InvalidCastException' occurred in computernode.dll

Additional information: QueryInterface for interface IConsole2 failed.

What can be done about that?