angelsix / fasetto-word

The new chat application for Fasetto, completely open-source :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Framework.Service bug

KillShot007 opened this issue · comments

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?

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?

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()'.

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