Open Craige opened 4 years ago
can you advise which database you are using here? i.e. MSSQL or MySQL.
Also version of OC?
SQLite
OC 1.0.0-rc1-11143
dotnet core 3.1
Will try to reproduce again. Noticed after this that I can't get any project setup since spooling up a new rc-1 project, so this may be symptomatic of something a bit deeper.
spoke with @Craige about this on gitter, believe it is resolved (issues where because the main startup was calling services they shouldn't, i.e. services.AddMvc()).
Reopening: the same issue occurs when you go with services.AddOrchardCore()
and forget to configure the database provider (e.g with "DatabaseProvider": "Sqlite"
in appsettings.json
). Not the pleasant error message you'd expect 😄
I was not able to reproduce this but maybe don't understand the conditions that cause it. Here are the steps I took:
The setup finished without any error.
Apparently it when a site doesn't use the Setup module, it needs a database provider to be set, or it crashes.
Immediately after setup of a MultiTenant default project (no secondary tenants created yet), OrchardCore throws a
NullReferenceException
.