Solved

VB NotesSession.InitializeUsingNotesUserName problem

Posted on 2006-07-24
6
2,062 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

860 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