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

Framework.Service bug #34

Open
KillShot007 opened this issue Aug 23, 2019 · 3 comments
Open

Framework.Service bug #34

KillShot007 opened this issue Aug 23, 2019 · 3 comments

Comments

@KillShot007
Copy link

KillShot007 commented Aug 23, 2019

Hi, I'm having this issue when building:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
at line :
public static IClientDataStore ClientDataStore => Framework.Service();
in the Core.IoC

what seems to be the probelm?

@angelsix
Copy link
Owner

Pulled latest code, built, I get none of those issues. I've updated packages and pushed that just in case that was causing issues for you. But this is a No-repro for me. Are you using latest branch?

@KillShot007
Copy link
Author

Hi, it turned out the problem is with the database, now I'm getting an exception in the EnsureDataStoreAsync() of the BaseClientDataStore class, when I digged deeper I noticed that the database was never created, and when this ensure method runs I get this exception:

System.MissingMethodException: 'Method not found: 'IntPtr SQLitePCL.sqlite3.get_ptr()'.'

and in the debug it shows this:

Exception thrown: 'System.MissingMethodException' in mscorlib.dll
Method not found: 'IntPtr SQLitePCL.sqlite3.get_ptr()'.

@KillShot007
Copy link
Author

Ok after a solid couple of days of debugging and researching, I found out that VS 2019 installs alot of additional microsoft packages when I install EntityFrameworkCore.Sqlite, my best guess would be that something is overiding the natural behaviour when dealing with the database, I installed VS 2017, I repeated the same steps and it worked

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

No branches or pull requests

2 participants