I’m working with N & D 8.5.2, Domino 64-bit on Win2008 (also tested on Win7).
As per the Designer doc since 5.0b the Domino server installer does NOT add the Lotus.NotesSession (or Lotus.NotesSession.#.#) into the registry. I can add it using regsrv32, but it seems like this should work. I looked back at a D7.0.1 FP1 server and it does not have a registry entry either. (Note: The Notes client installation does properly add the entry.) Does anyone else think this is an old / never fixed bug?
My bigger issue/question:
I have a .Net/C# application that runs as expected when compiled as 32-bit with a Notes Client installed, however, I would really like it to run in 64-bit mode. When I rebuild and try to run it on a Domino Server it fails with a “Class not registered” exception.
Should this work?
If I recompile as 32-bit I get “not a valid Win32 application.” I would expect this, since it should be trying to load the server’s 64-bit DLLs.
Thoughts, suggestions, questions… all are welcome.
You can use the Domino server’s DLLs to provide a 64-bit COM interface. The only issue with the documentation is that the server installer does NOT create the registry entries for you. You have to do that yourself with regsvr32.exe and point it at the nlsxbe.dll file in the Domino server’s program directory.
If you don’t already have the Notes client installed then this is really simple. Here’s where I made my mistake: I searched through the registry, found the entry made by the Notes client’s installer and updated it to point to the Domino directory rather than the Notes directory. The issue here is that the Notes entry is under 6432Node, which is reserved for 32-bit DLLs. That’s why Visual Studio was complaining when it loaded the 64-bit DLL… it could not find the matching CLSID higher up in the registry. I manually uninstalled the Notes entries from the registry then ran regsvr32 pointing to the server’s DLL and everything worked.
and not a Domino server feature. You should not run any COM apps on the server. You should run them from a workstation, with the client installed, and talk to the server. Anything else is unsupported. It’s not a bug, it’s a specific decision on a feature.
And no, your 64 bit mode trying to talk to Domino should not work. Again, unsupported.
The COM interface is available on a computer containing any of the following:
Domino Designer Release 5.0.2b or later
Domino Server Release 5.0.2b or later
Notes Client Release 5.0.2b or later
The Domino or Notes software must be installed but need not be running.
Installation of the Domino or Notes software makes a type library available and registers the following classes:
Lotus.NotesSession
Lotus.NotesSession.1
Do not confuse these with the OLE automation objects Notes.NotesSession and Notes.NotesUIWorkspace.
The Domino COM objects must be able to locate a valid notes.ini file, looking first in the Domino or Notes program directory and then at the PATH system variable. The KeyFileName setting in the notes.ini file specifies the user ID that COM uses.