Agent don't want to run from COM

I have simple COM component.

Dim lSession As New NotesSession

Dim lDatabase As NotesDatabase

Dim lAgent As NotesAgent

Call lSession.InitializeUsingNotesUserName(USERNAME, PASSWORD)

Set lDatabase = lSession.GetDatabase(SERVER_NAME, DATABASE_NAME)

Set lAgent = pDatabase.GetAgent(AGENT_NAME)

lAgent.RunOnServer

everything is working fine, COM component connects to Domino, lAgent has all properties of agent I want to start and there are no errors in the log.

Only problem - agent is not started…

I am very confused with this.

Please help.

Thank you.

Subject: Agent don’t want to run from COM

Did you check this?For COM applications, the Notes program directory must be in the application path.

Subject: Agent don’t want to run from COM

Is Domino registered as a COM server? See this post:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/36c5c6a636c787c785256c460046b400?OpenDocument