Hide password prompt in C#.NET

We are accessing Lotus Notes Client through code to integrate it with our Document Management system.We have created an addin for Lotus that helps user to publish(store as document) Lotus mail to his documents management system

But we cannot access the Lotus session,if client is closed.We are using the following code -

Type NotesSession123 = Type.GetTypeFromProgID(“Notes.NotesSession”);

object lnSession = Activator.CreateInstance(NotesSession123);

object dbNotes1 = lnSession.GetType().InvokeMember(“CurrentDatabase”, BindingFlags.GetProperty, null, lnSession, null);

If we use

object dbNotes1 = lnSession.GetType().InvokeMember(“GetDatabase”, BindingFlags.GetProperty, null, lnSession, null);

Then a password prompt comes.(which we do not want)

As Unknown name error returns if we use -

lnSession.GetType().InvokeMember(“Initialize”, BindingFlags.InvokeMethod, null, lnSession,new object{“password”});

Please help.

Subject: Hide password prompt in C#.NET

The best way to access Notes databases and services is our commercial ADO.NET data driver for Notes: Products A-Z.

This includes password management features and much more.

Subject: RE: Hide password prompt in C#.NET

Hi Stephan,

Thanks for you response.But using N2N would require that that we know the structure of Notes database.We actually already have a Lotus Addin that uses object library(COM) of Lotus Domino Objects to do the work.This Add-in just uses the already open Lotus client session and remains dependent on it.

Instead we want the following -

  1. Set up an independent session with the notes server by programmatically logging in and access the notes database. Currently we are able to retrieve all information as long as notes client is running

  2. Closing the lotus notes client, should not interrupt our application.

  3. The new session set up should not ‘overlap’ with the lotus notes client session

As of now we use “CurrentDatabase” method.But the moment we try to use “Getdatabase”,we get a password prompt.