angelsix / fasetto-word

The new chat application for Fasetto, completely open-source :)
MIT License
436 stars 217 forks source link

Framework.Service bug #34

Open KillShot007 opened 5 years ago

KillShot007 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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