Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create database if the File Path contains blank space! #284

Closed
chithanh12 opened this issue Aug 24, 2016 · 5 comments
Closed

Can't create database if the File Path contains blank space! #284

chithanh12 opened this issue Aug 24, 2016 · 5 comments
Labels

Comments

@chithanh12
Copy link

I have an issue with the connection string. If the file path contains the space we will get the error. "An unhandled exception of type 'System.ArgumentNullException' occurred in LiteDB.dll".
It is ok if the path doesn't contain blank space.

For example:
Error case:

using (var db = new LiteDatabase(@"C:\Temp Folder\MyData.db")) {
// Get customer collection
var customers = db.GetCollection("customers");
.....
}

Success case:

using (var db = new LiteDatabase(@"C:\Temp\MyData.db")) {
// Get customer collection
var customers = db.GetCollection("customers");
....
}

@mbdavid mbdavid added the bug label Aug 24, 2016
@mbdavid
Copy link
Collaborator

mbdavid commented Aug 24, 2016

Maybe was last connection string commit. For now, try ("filename=c:\temp path\file.db"). I will fix this week

@JordanSolutions
Copy link

I found the same issue, and can't get rid of it unless I revert back to pre-regex commit. I tried all reg-ex commits and they all have the same problem.

mbdavid added a commit that referenced this issue Aug 24, 2016
@JordanSolutions
Copy link

This issue seams to have been fixed with 2.0.2

@mbdavid
Copy link
Collaborator

mbdavid commented Nov 20, 2016

Fixed

@mbdavid mbdavid closed this as completed Nov 20, 2016
github-actions bot pushed a commit to Reddevildragg-UPM-Forks/LiteDB that referenced this issue Nov 18, 2020
@DanielAltamirano
Copy link

This issue still occurs in the latest version

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

No branches or pull requests

4 participants