Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.groupware.lotus-notes.programmer > #42

Re: Notes 6 problem using Initialize with NotesSession COM object

Newsgroups comp.groupware.lotus-notes.programmer
Date 2014-04-17 07:23 -0700
References <9049d4aa.0406090631.2606cf6a@posting.google.com> <eklyc.62182$w34.2848186@twister.tampabay.rr.com>
Message-ID <d4aaa61c-5d58-4763-bb3d-c335c65436b0@googlegroups.com> (permalink)
Subject Re: Notes 6 problem using Initialize with NotesSession COM object
From kolas1@gmail.com

Show all headers | View raw


пятница, 11 июня 2004 г., 18:44:58 UTC+2 пользователь Vlad Kozin написал:
> Hi,
> Some R6 setups do not include domino objects.
> Most likely your Notes does not have the API, that's why your script blows
> up.
> 
> I tried 6.5.1, did a fresh install, not an upgrade. And it worked.
> 
> I think I also know what causes the 'ID file not found' problem. Once you
> find the proper notes.ini file (there are a few of them out there, use the
> one that has path to the ID file) and copy it somewhere on the path (like
> C:\Windows), everything will work. So it is caused by Notes not being able
> to find the proper INI file when called via COM. Weird stuff.
> 
> regards,
> Vlad
> vladware.com
> 
> "wghornsby" <wghornsby@yahoo.com> wrote in message
> news:9049d4aa.0406090631.2606cf6a@posting.google.com...
> > I have a VB program that authenticates against Notes, which started
> > causing problems once our company upgraded to Notes 6.
> >
> > <code snippet>
> >     Dim ns As Object
> >     Set ns = CreateObject("Lotus.NotesSession")
> >     Call ns.Initialize(Myself.Password)
> > </code snippet>
> >
> > The above code started failing in the Initialize method with error
> > code 48, message "Error in loading DLL".
> >
> > I was able to get the Initialize to work on my machine if I chose
> > early- rather than late-binding with the ns variable--declaring it as
> > "NotesSession" and setting a project reference to "Lotus Domino
> > Objects" (domobj.tlb).  This shaky "solution" seems to work for most
> > of our users, but I have recently got wind of an XP client where the
> > Initialize still fails, this time with error code -2147217504, message
> > "Could not open the ID file."  The location of the ID file and
> > notes.INI settings on this machine appear fine.
> >
> > Does anyone have any ideas?  I'd also like to know why I'm getting
> > "error in loading dll" with the late-binding approach?  If it's no
> > longer possible with Notes 6 to initialize a NotesSession declared as
> > Object, how can VBScript initialize NotesSession?
> >

Pls go to your domino program directory and perform

regsvr32.exe C:\Lotus\Domino\nlsxbe.dll

it will register COM object which is missing.

Back to comp.groupware.lotus-notes.programmer | Previous | Next | Find similar


Thread

Re: Notes 6 problem using Initialize with NotesSession COM object kolas1@gmail.com - 2014-04-17 07:23 -0700

csiph-web