[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2149
  • Last Modified:

VB NotesSession.InitializeUsingNotesUserName problem

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
nigelboyle
Asked:
nigelboyle
1 Solution
 
p_parthaCommented:
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
 
SysExpertCommented:
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
 
marilyngCommented:
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
 
nigelboyleAuthor Commented:
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now