I’m trying to use C# to export and import entire dbs. The exporting works great, but when I’m try to set the ACLImportOption I get an exception.
Here’s a short piece of the code:
in this code _sFile is the file name to import and oDb is the newly created db
Domino.NotesStream oDbDef = _oSession.CreateStream();
if (oDbDef.Open(_sFile, “”))
{
Domino.NotesDXLImporter oAction = _oSession.CreateDXLImporter();
oAction.ReplaceDBProperties = true;
oAction.ACLImportOption = DXLIMPORTOPTION.DXLIMPORTOPTION_CREATE;
oAction.ExitOnFirstFatalError = false;
oAction.Import(oDbDef, oDb);
}
Any ideas why this is giving me an exception?