Skip to content

DBreeze.Exceptions.DBreezeException: Creation of the database folder failed! ---> DBreeze.Exceptions.DBreezeException: Database is not operable, please find out the problem and restart the engine! FSR INIT FAILED #59

@AbdisamadMoh

Description

@AbdisamadMoh
DBreeze.Exceptions.DBreezeException: Creation of the database folder failed! ---> DBreeze.Exceptions.DBreezeException: Database is not operable, please find out the problem and restart the engine! FSR INIT FAILED: C:\Users\user\Documents\Visual Studio 2015\Projects\chat\chat\App_Data/D12345/Message/MessageID/Abdi\_DBreezeSchema ---> System.IO.IOException: The process cannot access the file 'C:\Users\user\Documents\Visual Studio 2015\Projects\chatchat\App_Data\D12345\Message\MessageID\Abdi\_DBreezeSchema' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at DBreeze.Storage.FSR.InitFiles()
   --- End of inner exception stack trace ---
   at DBreeze.Storage.FSR.InitFiles()
   at DBreeze.Storage.FSR..ctor(String fileName, TrieSettings trieSettings, DBreezeConfiguration configuration)
   at DBreeze.Storage.StorageLayer..ctor(String fileName, TrieSettings trieSettings, DBreezeConfiguration configuration)
   at DBreeze.Scheme.OpenSchema()
   at DBreeze.Scheme..ctor(DBreezeEngine DBreezeEngine)
   at DBreeze.DBreezeEngine.InitDb()
   --- End of inner exception stack trace ---
   at DBreeze.DBreezeEngine.InitDb()
   at DBreeze.DBreezeEngine..ctor(String DBreezeDataFolderName)
   at Chat.Main.Main.SendMessage(String _Id, String _msg, String _from, String _to) in C:\Users\user\Documents\Visual Studio 2015\Projects\chat\chat\Main\Main.cs:line 60

Am getting that error and its seems with file inaccessibility. It happens when i try to concurrently write or read database file from different Threads(From different Instant of DBreezeEngine). Im using ASP.NET Webforms and every request will have different Instant of DBreezeEngine.

I tried to use DBIsoperable but the error happens before it.

Is there away to concurrently read/write db file from different DBreezeEngine instant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions