question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the initial setup for `dotnet new3 mvc --auth Individual` SQLite database?

See original GitHub issue

I’ve used to advice to call dotnet ef database update before running MVC project with SQLite datbase, but that is no longer a case with new dotnet tooling. What is the supposed UX scenario to get MVC with authorization backed by SQLite to run?

dotnet run Hosting environment: Production Content root path: /Users/piotrblazejewicz/development Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down. warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] No XML encryptor configured. Key {9dc754fa-11c3-436b-9235-b123c11babb3} may be persisted to storage in unencrypted form. fail: Microsoft.EntityFrameworkCore.Query.RelationalQueryCompilationContextFactory[1] An exception occurred in the database while iterating the results of a query. Microsoft.Data.Sqlite.SqliteException: SQLite Error 1: ‘no such table: AspNetUsers’. at Microsoft.Data.Sqlite.Interop.MarshalEx.ThrowExceptionForRC(Int32 rc, Sqlite3Handle db)

https://github.com/aspnet/EntityFramework/issues/7538 https://github.com/aspnet/EntityFramework/issues/7358

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rowanmillercommented, Feb 8, 2017

Just to add a little more clarity. The Microsoft.EntityFrameworkCore.Tools package contains the PowerShell commands that are used within Visual Studio, and is just installed as a usual package reference.

Microsoft.EntityFrameworkCore.Tools.DotNet has the .NET CLI commands, and needs to be listed as a DotNetCliToolReference in the project.

<ItemGroup>
  <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet"
                          Version="1.0.0-msbuild3-final" />
</ItemGroup
0reactions
seancpeterscommented, Feb 24, 2017

This is fixed with the templates in rtw.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create an ASP.NET Core app with user data protected by ...
Learn how to create an ASP.NET Core web app with user data protected by authorization. Includes HTTPS, authentication, security, ASP.
Read more >
How to create a local SQLite database and publish ...
My ASP.NET MVC project is currently published to IIS, so I need the SQLite Database can be published along, and also no need...
Read more >
Getting Started - EF Core
Open Visual Studio · Click Create a new project · Select Console App (.NET Core) with the C# tag and click Next ·...
Read more >
NET Core Connect to SQLite Database in 10 minutes - YouTube
In this video I'll show you how to connect to a SQLite database using . NET Core and execute some basic commands. Link...
Read more >
How to use EF Core as an in-memory database in ASP. ...
Click Next. In the “Configure your new project” window, specify the name and location for the new project.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found