Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Initializing Notes Session with VBScript

Posted on 2003-12-09
5
Medium Priority
?
9,559 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 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