Solved

Initializing Notes Session with VBScript

Posted on 2003-12-09
5
9,409 Views
Last Modified: 2007-12-19
i am ASP developer and this is the first time i deal with Lotus Notes.

I am trying to initialize an Lotus Notes Session.  however, i got an error "An exception of type 'NotesSession:Notes error: could not open the ID file' was not handled"

when i try to use InitializeUsingNotesUserName() with username and password, i got a different error message "'An invalid username/password' was not handled".

here's that section of the code:

Dim s
set s = CreateObject("Lotus.NotesSession")
Call s.Initialize("password")

'and then process documents.....


some environment info.:
i am running win2k, with lotus notes client installed.  Lotus Domino Server is not installed.

i have checked the notes.ini file, KeyFilename=user.id.  i've tried changing it to the full path, but didn't help.

i noticed if i used InitializeUsingNotesUserName() without passing parameters, then i'm fine and have no problem initializing, however, come back an error saying anonymous user not allowed to open database.

what should i do????
0
Comment
Question by:asenna25
  • 3
  • 2
5 Comments
 
LVL 13

Expert Comment

by:CRAK
ID: 9915106
I know nothing about VBscript, but perhaps this helps to set you on the right track:

Set session = CreateObject("Lotus.NotesSession")
Call session.Initialize("passwordOptional")
Call session.InitializeUsingNotesUserName("name", "passwordOptional")
Set db = session.getDatabase("","")

I copied it (I won't reveil that) from http://www.experts-exchange.com/Applications/Email/Lotus_Notes/Q_20680718.html
If you post a request under community support to move this question to the lotus notes topic area, then perhaps my friend qwaletee can help you any further if you get stuck. That way you don't have to spend another 500!
;-)
0
 

Author Comment

by:asenna25
ID: 9915694
thanks for replying my post!

that's what i did - passing the password with Initialize(), and i also tried passing username and password with InitializeUsingNotesUserName() - but neither on of them work...

currently, my user.id file is located in C:\Program Files\lotus\notes\data, and i hv this full path in the keyfilename.  is that right?

thanks for the suggestion, i'll post the question again under Lotus Notes.

thanks again.
0
 
LVL 13

Accepted Solution

by:
CRAK earned 500 total points
ID: 9918768
I'm not sure how VB picks up the correct location of the id file. In notes it's notes.ini that stores the location of the last id that was used. You can also define a file (+path) in the location document, but neither is defined here...

Community support can MOVE the question for you.
Otherwise, if you create a new one in the notes topic area, please ask them to close/delete this one and refund your points. Otherwise it will remain open for months untill a moderator comes along to close it.
0
 

Author Comment

by:asenna25
ID: 9928640
crak,

your friend qwaletee definitely gives me lotsa good pointers.  thanks a lot!
0
 
LVL 13

Expert Comment

by:CRAK
ID: 9931154
You're welcome! Thanks for the points! 500 * A, only to get you in a topic area where somebody else is still supposed to pick up the question?! That's very generous!
Well, you know where to turn to the next time when you need a hand!
;-))
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now