So I built my first Umbraco v9 and went with the SQL Express option. But, that *.mdf file is like 10X the size of the *.sdf databases I'm using to seeing with Umbraco <= v8.
So I converted my *.mdf to *.sdf The resulting database was 97% smaller filesize. That's a huge plus for me running 100+ sites on one webserver.
I changed my connection string in appsetings.json from this...
I ran my site locally and I get the error message below. So v9 doesn't support SQLCE out of the box? Can someone point me to what I need to do for v9 to run on SQLCE?
BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's
log file for more details. ->
Umbraco.Cms.Core.Exceptions.BootFailedException: Could not check the
upgrade state. at
Umbraco.Cms.Infrastructure.Runtime.RuntimeState.GetUmbracoDatabaseState(IUmbracoDatabaseFactory
databaseFactory) at
Umbraco.Cms.Infrastructure.Runtime.RuntimeState.DetermineRuntimeLevel()
at
Umbraco.Cms.Infrastructure.Runtime.CoreRuntime.DetermineRuntimeLevel()
-> System.ArgumentException: The specified invariant name 'System.Data.SqlServerCe.4.0' wasn't found in the list of registered
.NET Data Providers. at
System.Data.Common.DbProviderFactories.GetFactory(String
providerInvariantName, Boolean throwOnError) at
System.Data.Common.DbProviderFactories.GetFactory(String
providerInvariantName) at
Umbraco.Cms.Infrastructure.Persistence.DbProviderFactoryCreator.CreateFactory(String
providerName) at
Umbraco.Cms.Infrastructure.Persistence.UmbracoDatabaseFactory.getDbProviderFactory()
at
Umbraco.Cms.Infrastructure.Persistence.UmbracoDatabaseFactory.getCanConnect()
at
Umbraco.Cms.Infrastructure.Runtime.RuntimeState.TryDbConnect(IUmbracoDatabaseFactory
databaseFactory) at
Umbraco.Cms.Infrastructure.Runtime.RuntimeState.GetUmbracoDatabaseState(IUmbracoDatabaseFactory
databaseFactory)
Umbraco v9 SQLCE ?
So I built my first Umbraco v9 and went with the SQL Express option. But, that *.mdf file is like 10X the size of the *.sdf databases I'm using to seeing with Umbraco <= v8.
So I converted my *.mdf to *.sdf The resulting database was 97% smaller filesize. That's a huge plus for me running 100+ sites on one webserver.
I changed my connection string in appsetings.json from this...
...to this...
I ran my site locally and I get the error message below. So v9 doesn't support SQLCE out of the box? Can someone point me to what I need to do for v9 to run on SQLCE?
Hi,
SqlCE doesnt ship with Umbraco 9 anymore instead you need to install a package - https://www.nuget.org/packages/Umbraco.Cms.SqlCe/9.3.1
Support for SQLLite is coming in v10 I believe, which should be a better alternative, as SQLCe is no longer supported by Microsoft.
Thanks Matt
@MatthewWise you rock! That did the trick! Many thanks!
is working on a reply...