This project has moved. For the latest updates, please go here.

Interface not registered exception

Mar 28, 2012 at 7:01 PM


I am facing a weird problem while using the library.  I randomly receive a 'COM Exception: Interface not registered'  exception while trying to update the tasks.

I can successfully create a task and perform other operations but the update process is causing it throw the COM Exception and i m not sure why.

The only difference between the 'Add' and the 'Edit' operations is that the 'Edit' operation is performed on a thread because i have multiple tasks which are to edited and updated simultaneously.

Please help me.




Mar 28, 2012 at 11:41 PM

All calls to the library must exist on the same thread. This is a wrapper for a COM library that must be initialized and instantiated on each thread.

Mar 29, 2012 at 7:31 AM

Thanks for your reply.

Actually this was possible with the older version of this library.  I used to update the tasks on threads and it succeeded at that time.

The older version that we used earlier was 1.5.0

Mar 29, 2012 at 4:14 PM

The library is not designed to work on multiple threads. The instance of the TaskService should be in the same thread as the one you use to create new thread definitions and register those definitions. One option for working around this is to use the XML from the thread definition to make changes and then pass it back to your primary thread for registration. Another is to just create another instance of the TaskService in each thread.

Mar 30, 2012 at 5:47 AM

Got the problem!

Actually i was doing the same thing as you mentioned i.e the task service object was being initialized and used on different threads.  Now i will choose to create new instance of task service for each thread.

Thanks for your reply and such a great library.