Solved

VB NotesSession.InitializeUsingNotesUserName problem

Posted on 2006-07-24
6
2,039 Views
Last Modified: 2013-12-18
When I try to initialize a notes session using the NotesSession.InitializeUsingNotesUserName I get an error saying something like "User Nigel Boyle is not a server".

Here is the code I use:

Dim DomSession As New Domino.NotesSession
DomSession.InitializeUsingNotesUserName("Nigel Boyle", "password")

Any ideas?
0
Comment
Question by:nigelboyle
6 Comments
 
LVL 14

Accepted Solution

by:
p_partha earned 125 total points
ID: 17169119
AFAIK, it searches for your notes.ini to find the username . It's teh keyfilename that points to the username, Just verify that is fine
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 17175958
You may  need to use the full canonical name
See the Notes.ini or compare the name with the one in your normal login screen.

I hope this helps !
0
 
LVL 18

Expert Comment

by:marilyng
ID: 17177481
I Believe the command only works on a server and is looking for a servername.  Or you are running it on a server and the server ini is responding with the server name that doesn't match the name you're using.

It would be the same as a regular script:
Dim s as New NotesSession
Dim username as NotesName
set username = s.username

---------------------
If you are logged in, then the command will work, otherwise it will not, I think.  Haven't done this in awhile, but I can check for you.

I believe this is part of Notes Security, else people can just hit Notes from anywhere on a computer without having the correct user access or password. But, again, would have to check to be sure.
0
 

Author Comment

by:nigelboyle
ID: 17198815
Unfortunately I'm going on holiday so I won't be able to reply/do anything more until i get back in a week or so.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
  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…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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