title: How to open a Lotus Notes Database on a network share?
body: <p>I am trying to interact with a Notes database (my personal mail file), via C# and am stuck right out of the gate, trying to open the database with the following code:</p>
  
  <pre><code>        string sNotesSourceFolder = "$Inbox";
          string sUserName = "scady";
          string sMailFile = @"NotesMail_FDrive\ARchives\" + sUserName + ".nsf";         
          string sServerName = @"Answers1/Answers";
          string sPassword = "xxxxxx";
  
  
          //Creating the notes session 
          NotesSession session = new NotesSession();
          session.Initialize(sPassword);
          NotesDatabase NotesDb = session.GetDatabase(sServerName, sMailFile, false);
  
          //If the database is not already open then open it. 
          if (!NotesDb.IsOpen)
          {
              NotesDb.Open();
          }
  </code></pre>
  
  <p>calling session.GetDatabase() with the server name and path the the nsf file returns null which, apparently means it could not open the db.  </p>
  
  <p>I am running this code locally, against a Notes server called "Answers1/Answers".  I am now thinking based on From the Notes server, the nsf files are located on a network fileshare of "NotesMail_FDrive\ARchives\xyz.nsf".</p>