This project has moved and is read-only. For the latest updates, please go here.

ESENT Managed Interop: edb.chk, edb.log etc

Jul 17, 2011 at 8:40 AM
Edited Jul 17, 2011 at 8:42 AM


I am using the Esent Managed Interop (not the dictionary) to create a database.
Even when I set the database parameters as


instance.Parameters.BaseName = "Snp";
instance.Parameters.CircularLog = true;
instance.Parameters.SystemDirectory = codeDir;
instance.Parameters.LogFileDirectory = codeDir;
instance.Parameters.TempDirectory = codeDir;
instance.Parameters.AlternateDatabaseRecoveryDirectory = codeDir;


 The following files are still generated in the working directory (not in the codeDir):

  • edb.chk
  • edb.log
  • edbres00001.jrs
  • edbres00002.jrs

Anyway to prevent the generation of these files or have them generated in the codeDir directory?
I have tried all the parameters and without any success.

Best regards,

Jul 18, 2011 at 6:31 PM

Those are the right parameters. Are you setting them before you initialize the instance (i.e. call instance.Init())?

Jul 19, 2011 at 3:23 AM

Hello Lauriob,

Thanks for the response and the hint. Yes, I was setting the parameters before calling the instance.Init().

I followed the two steps of creating and opening the database as in one of your samples. 
The problem was that I failed to provide the same parameters in the creation step. After your confirmation,
I looked and found that, corrected it and everything works perfectly.

Thanks so much for the support.

Best regards,