Crash when using Database #185

Closed
opened 2026-01-29 16:33:05 +00:00 by claunia · 2 comments
Owner

Originally created by @HurricanKai on GitHub (Jun 14, 2018).

Just recently started using this project, and after some testing i hoped to base a project on it.
thought, i now added a Db, using the normal DbContext - ensure create way.
but once it reaches EnsureCreated() it simply crashes:
(Attached, too large)

starting it as a normal application, meaning with dotnet run just runs the webserver fine.
using dotnet electronize start thought causes this error.
Error.txt
sorry for my bad english, woud be great if someone is able to understand why it doest load.
(seems to have something to do with a module called e_sqlite3 but none of the stuff i coud find anywhere else helped.

Originally created by @HurricanKai on GitHub (Jun 14, 2018). Just recently started using this project, and after some testing i hoped to base a project on it. thought, i now added a Db, using the normal DbContext - ensure create way. but once it reaches EnsureCreated() it simply crashes: (Attached, too large) starting it as a normal application, meaning with `dotnet run` just runs the webserver fine. using `dotnet electronize start` thought causes this error. [Error.txt](https://github.com/ElectronNET/Electron.NET/files/2103153/new.9.txt) sorry for my bad english, woud be great if someone is able to understand why it doest load. (seems to have something to do with a module called e_sqlite3 but none of the stuff i coud find anywhere else helped.
Author
Owner

@paulov-t commented on GitHub (Jun 14, 2018):

I had the same problem. I fixed it by adding the nuget package Microsoft.Data.Sqlite. This comes with the correct DLLs for publishing.

@paulov-t commented on GitHub (Jun 14, 2018): I had the same problem. I fixed it by adding the nuget package Microsoft.Data.Sqlite. This comes with the correct DLLs for publishing.
Author
Owner

@kwakuduahc1 commented on GitHub (Jun 18, 2018):

While you are at it, add efcore.sqlite to it( Install-Package Microsoft.EntityFrameworkCore.Sqlite NuGet package)

@kwakuduahc1 commented on GitHub (Jun 18, 2018): While you are at it, add efcore.sqlite to it( <code>Install-Package Microsoft.EntityFrameworkCore.Sqlite</code> NuGet package)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#185