This is likely to happen if you move a database that hasn't been
shutdown cleanly. When ESENT is initialized it automatically runs
database recovery using the logfiles in the configured logfile path.
Logfiles store the full path to the database and recovery opens the
database using the path which is stored in the logfiles. That means
recovery won't work if you move the database has been moved.
Starting with Windows Server 2003 you can set the
AlternateDatabaseRecoveryPath to give ESENT a different place to look
for databases if they can't be found in the original path. I suggest
setting InstanceParameters.AlternateDatabaseRecoveryPath to the
current database directoy before initializing ESENT. That will let
recovery work on moved databases.
InstanceParameters.AlternateDatabaseRecoveryPath is ignored on Windows
XP.
--Laurion