Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Can't open db file #6

Closed
amgadfahmi opened this issue Sep 19, 2016 · 12 comments
Closed

Can't open db file #6

amgadfahmi opened this issue Sep 19, 2016 · 12 comments

Comments

@amgadfahmi
Copy link

Selected file is not a valid liteDB database file
value can't be null
parameter name:file name

my db file name is IP.db and using latest version of ur app

@falahati
Copy link
Owner

falahati commented Sep 20, 2016

Interesting.
Did you try selecting the file using the open file dialog and without explorer? It seems that explorer for some wired reason don't pass the file address correctly.
Try opening the app directly from Start Menu and select your file, see what happens.

@amgadfahmi
Copy link
Author

I did this and still getting same error

@falahati
Copy link
Owner

Where is your file? Full address please.

@amgadfahmi
Copy link
Author

http://bit.ly/litedbtest

@falahati
Copy link
Owner

falahati commented Sep 20, 2016

I just wanted the file address. not the file itself. And for the record file opens alright for me.

BUT,
This problem might be related to this issue:
litedb-org/LiteDB#284

Which rooted in a bad piece of code that I contributed to the main project. So totally my fault.
However, I can't fix it now by upgrading to version 2.0.2, as the program will lose its functionality about password protected files with certain characters. We all need to wait for the following pull request and 2.0.3 version of LiteDB (and LiteDBViewer).
litedb-org/LiteDB#306

Meanwhile, you need to copy the file to an address without space in its name and see if this works for you.
Like your desktop or C:\ drive.

@amgadfahmi
Copy link
Author

Yeah its working as the path had some spaces, would you make it clear for others until next version comes out. Thanks for the app

@tanwarsatya
Copy link

DB file is not opening I have tried all the options specified above, what's the next step. I am running the basic example mentioned on litedb website. Copied the file to C:\ as well ( MyData.db )

@falahati
Copy link
Owner

What is the exact error message and your database version? Can you attach it for me to test?

@tanwarsatya
Copy link

capture

'MyData.db' is not a LiteDB database

@falahati
Copy link
Owner

falahati commented Oct 1, 2016

This error code is generated directly by the LiteDB libraries so I cant do much about it. Probably something is wrong with the file.

@tanwarsatya
Copy link

I guess I found issue is simple, the setup available is referencing old LiteDB.dll. I will suggest to update the code to reference new dlls.

@falahati
Copy link
Owner

falahati commented Oct 4, 2016

This could be an issue if you tried opening a Litedb 2 database using version 1 of LiteDB viewer. For this please download and install LiteDBViewer2: https://github.com/falahati/LiteDBViewer/releases/tag/v2.0.1
Also if you have both versions 1 and 2, you need to use OpenWith command and select the correct version of LiteDBViewer for your database file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants