In V8 by removing the connection string and version number from the web.config it would trigger the installer, this doesn't seem to work in V9, how is it done?
InvalidOperationException: The factory has not been configured with a
proper connection string.
Umbraco.Cms.Infrastructure.Persistence.UmbracoDatabaseFactory.Initialize()
We had the same error after clearing the connectionstring.
In our code base (migraded from a V8 installation) we had a custom database migrator which we needed to update with the following to ensure the migration will not run before Umbraco has booted.
You might have other composers with the same issue in your code base.
if (_runtimeState.Level < RuntimeLevel.Run)
{
return;
}
Hey Elgars and anyone else who may be having this issue I am having the same problem and while not 100% fixed yet I think setting up an unattended install may be the way to go:
How to trigger installer / reinstall
In V8 by removing the connection string and version number from the web.config it would trigger the installer, this doesn't seem to work in V9, how is it done?
What have you tried?
In my test emptying connection string was sufficient to trigger reinstall.
I tried that, but I get the following error:
We had the same error after clearing the connectionstring.
In our code base (migraded from a V8 installation) we had a custom database migrator which we needed to update with the following to ensure the migration will not run before Umbraco has booted.
You might have other composers with the same issue in your code base.
See documentation here: https://our.umbraco.com/Documentation/Extending/Database/
Hey Elgars and anyone else who may be having this issue I am having the same problem and while not 100% fixed yet I think setting up an unattended install may be the way to go:
https://our.umbraco.com/documentation/Reference/V9-Config/UnattendedSettings/
I have a few other env related hoops to jump through but will confirm if this solves the issue for me.
Cheers L
is working on a reply...