Domino - Visual Basic integration

I have designed some VB applications to automate some standard procedures that I have until now been running, with success on my laptop.

However I would now like to automate them to run as services on a server.

Unfortunately I have not been able to do this with success as it seems that the VB app is not able to authenticate to the Domino server to establish the session.

Anybody got any tip on how I can design the setup so that these apps can run as automated services?

(The server I am trying to run the apps from has a configured Notes client installed but it is not the same server as Domino is running on and the Notes session is being etsblished against)

Subject: Domino - Visual Basic integration

It would be helpful if you could post some of the code where you are trying to establish the session. (don’t post your actual password, however).

I can tell you that I have been successful with an arrangement similar to what you described.

Subject: Domino - Visual Basic integration - Code example

This is a stripped version of the app. I’m sure whichever detail I’ve missed it’s somewhere between these few lines…

Imports Domino

Module Main

Public Sub main()

    Dim session As New NotesSession()

    Call session.Initialize("password")

End Sub

End Module

I have added the Domino reference in VB and I have registred the nlsxbe.dll on the workstation the app is scheduled to run on.

Any help would be highly appreciated

Subject: Found the error…

I had used the OLE declaration ( session = CreateObject(“Notes.NotesSession”) ) and not the COM declaration ( session = CreateObject(“Lotus.NotesSession”) )

thanks and sorry for the inconvenience