title: ESENT database engine file access denied
body: <p>I am trying to using the ESENT windows database with the <a href="http://managedesent.codeplex.com" rel="nofollow noreferrer">managedesent</a> library but I always get the error </p>
  
  <pre><code>Error FileAccessDenied (JET_errFileAccessDenied, Cannot access file, the file is locked or in use)
  </code></pre>
  
  <p>The code to open the database is </p>
  
  <pre><code>m_Dictionary = new PersistentDictionary&lt;string, PropertyStruct&gt;("BaseEstateCachedPropertySummary2");
  </code></pre>
  
  <p>I am testing this on Windows 7 and the application is an ASP.NET application. Does anyone have any ideas about this, documentation is pretty slim.</p>