You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
When the server tries to initialize the database by running "new LiteDatabase(dbFile, mapper)", it throws the error:
System.InvalidOperationException: Your platform does not support FileStream.Lock. Please set mode=Exclusive in your connnection string to avoid this error.
Fixed by simply replacing the following: (Server>Storage.fs)
new LiteDatabase(dbFile, mapper)
With:
let cnn = ConnectionString(sprintf "filename=%s; mode=Exclusive" dbFile)
new LiteDatabase(cnn, mapper)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When the server tries to initialize the database by running "new LiteDatabase(dbFile, mapper)", it throws the error:
System.InvalidOperationException: Your platform does not support FileStream.Lock. Please set mode=Exclusive in your connnection string to avoid this error.
Fixed by simply replacing the following: (Server>Storage.fs)
With:
The text was updated successfully, but these errors were encountered: