Notes Sessions Vs Lotus Session COM API Issues

ぃ、小莉子 提交于 2019-12-08 11:52:59

问题


I maintain a fairly large application which does a lot of talking with Lotus Notes. Recently in the last couple of months, some users have been having problem connecting to the Lotus Notes Session, I use the following code to get the session

Set Session = CreateObject("Notes.NotesSession")

This error seems to be popping up only for a certain number of users. I created a sample app with the following line

Set Session = CreateObject("Lotus.NotesSession")

And the above line works for some reason. The user says there was some issue installing notes but has been rectified after a re-installation. Why are there two class names for the same object and why is one working an other one not working.

Any yelp on this would appreciated :)


回答1:


This documentation on IBM's site mentions that Notes.NotesSession is OLE based.:

After installing release 5.0.2b, you will see in the operating system registry a class named Lotus.NotesSession, as shown below. This is the root of the Domino COM classes. Still present are Notes.NotesSession and Notes.NotesUIWorkspace which are the OLE roots

I don't know specifically why the OLE classes are failing where the COM classes do not, but given that OLE is two decades old now, I would stick with Lotus.NotesSession :)




回答2:


Not much to go on, but I'd throw ProcMon at it and see what registry keys and files are being hit when you request this object.




回答3:


The Notes-Name and password still have to be 'current' for the login used. If the account has expired or requires recertification, access may be blocked?



来源:https://stackoverflow.com/questions/2183208/notes-sessions-vs-lotus-session-com-api-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!