?
Solved

Initializing Notes Session with VBScript

Posted on 2003-12-09
5
Medium Priority
?
9,530 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

765 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