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)
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: