-
|
Hi There, Any idea what I could be missing when registering a C# Library with an exposed COM object that implements ITaskHandler? Currently I get error 0x80040154 (REGDB_E_CLASSNOTREG) when attempting to start a task within task scheduler.
I can create the same COM object via PowerShell no problem (but it seems to be inproc which could be the issue). But task scheduler refuses to run the task. Any ideas would be great. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Did you already look here: https://github.com/dahall/ITaskHandlerTemplate ? It is a fully implemented C# project to create a handler. You may get some hints for your project config and class attributes by looking at that project and its files. |
Beta Was this translation helpful? Give feedback.
-
|
RegAsm deals with registering managed classes as COM visible. RegSvcs does a lot more (see docs). COM+ is not necessarily a requirement for implementing the in-proc server, but it is the only way that I have found to get a .NET assembly to work. |
Beta Was this translation helpful? Give feedback.
Did you already look here: https://github.com/dahall/ITaskHandlerTemplate ?
It is a fully implemented C# project to create a handler. You may get some hints for your project config and class attributes by looking at that project and its files.