I'm using C# and Lotus Notes 6.5.1
In code I create a NotesSession and then I get a NotesDatabase. Sometimes when I step through the code (in Debug mode), I get a popup window when the code executes the following line of code:
The popup windows reads: Error: The system cannot find the file specified.
When this happens, I click on the OK button to close the window, and I'm still able to step through the rest of the code and everything continues to execute as expected.
However, this is a problem when this program is scheduled or automated because I have no way to tell the program to ignore any error popups and continue processing.
Is there some value that I need to set or is there another way that I should try to open a NotesDatabase? The code in question follows.
Domino.NotesDatabase _notesDatabase = null;
Domino.NotesSession _notesSession = null;
_notesSession = new Domino.NotesSession();
_notesSession.Initialize(ServerPWD); // ERROR popup window occurs here.
_notesDatabase = _notesSession.GetDatabase(ServerName, MailFile, false);