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

x
?
Solved

initializing Lotus Notes Session

Posted on 2003-12-09
3
Medium Priority
?
4,287 Views
Last Modified: 2008-02-26
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(), 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.

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
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
ap_sajith earned 1000 total points
ID: 9909808
The Initialize method shown in the code bases the session on the current Domino or Notes user ID. If the user ID requires a password, a prompt appears at run-time. Optionally you can specify the password in the code:

Call session.Initialize("UserIDPassword")

If the machine contains both server and client software, the user ID depends on which software is current in the operating system registry.
If the code is running on a machine containing a Domino server, you can base the session on a user name in the local Domino Directory with:

Call session.InitializeUsingNotesUserName("UserName")

An empty string means "Anonymous." Access depends on the "Server Access" and "Java/COM Restrictions" settings in the user record in the Domino Directory.

In this case, the password is the Internet password in the user record in the Domino Directory. If a password is required and you do not want prompting or the software (for example, VBScript under ASP/IIS) does not support prompting, specify a second parameter:

Call session.InitializeUsingNotesUserName("UserName", "InternetPassword")

http://www-10.lotus.com/ldd/today.nsf/0/27e234ca2b0b30798525684e00574a54?OpenDocument

So your code should be...

Dim s
set s = Server.CreateObject("Lotus.NotesSession")
Call s.InitializeUsingNotesUserName("UserName", "InternetPassword")


Cheers!!
0
 

Author Comment

by:asenna25
ID: 9915864
Thanks for replying the post!!!

as i explained in my orinial post, i don't have Domino Server installed, and the Lotus Notes Client is installed as an "island".  i've used InitializeUsingNotesUserName("UserName", "InternetPassword"), but i got "invalid username/password" error.  where should i go to check my username and password info for the Notes Client is Correct?

also, if i used Initialize("passwordOptional"), that's when i get the "Could not open ID file" error.  i have the full path in keyfilename (C:\Program Files\lotus\notes\data\user.id)

i could initialize with anonymous access, but then it can't open database or creat document since Anonymous User doesn't have those right.  I need to change my permission setting on the Anonymous user to have all access, and only then, i will have no problem at all.

regarding on the PDF link, I have that redbook, but it didn't really help me on this accessing issue.

any other suggestions?

thanks again!!
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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

610 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