Open Cruik opened 1 year ago
@Cruik I faced same problem today. I don't know if you already found the solution or not. Posting it here for anyone else who faces similar issue.
The problem was that the creation date of the db file was corrupted for some reason. After I deleted the corrupted file, it worked fine. No error.
Version LiteDB 5.0.16 / .Net6 Maui-Android
Describe the bug
When i try to get some collection of my db i get the following exception:
Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. (Parameter 'ticks')
Code to Reproduce
Expected behavior Do not throw an exception and return the saved data
Screenshots/Stacktrace
Additional context my db file is protected with an password. But the password only contains letters and numbers My LiteDb does not contain any datetime fields in this collections