none
winserver 2008 iis中如何使用esent? RRS feed

  • 问题

  • 本地win7测试 完全正常 在服务器上使用ManagedEsent 的时候就会提示

     

    Cannot access file, the file is locked or in use
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: Microsoft.Isam.Esent.Interop.EsentFileAccessDeniedException: Cannot access file, the file is locked or in use

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

    Stack Trace:


    [EsentFileAccessDeniedException: Cannot access file, the file is locked or in use]
       Microsoft.Isam.Esent.Interop.Api.Check(Int32 err) in C:\ManagedEsent\EsentInterop\Api.cs:2739
       Microsoft.Isam.Esent.Interop.Api.JetInit2(JET_INSTANCE& instance, InitGrbit grbit) in C:\ManagedEsent\EsentInterop\Api.cs:150
       Microsoft.Isam.Esent.Interop.Instance.Init(InitGrbit grbit) in C:\ManagedEsent\EsentInterop\Instance.cs:171
       Microsoft.Isam.Esent.Collections.Generic.PersistentDictionary`2..ctor(String directory) in C:\ManagedEsent\EsentCollections\PersistentDictionary.cs:133

     
    不知道该如何解决

    2011年4月12日 2:50

答案

全部回复