Localhost upgrade error "A connection string is configured but Umbraco could not connect to the database."
Hi! I am trying to upgrade from 7.15.5 by going through an intermediate version like 8.2.6 before going to 8.6.6. This is because of a bug that doesnt allow direct upgrade from 7.15.5 to 8.6.6, but when I copy the MDF file from my 7.15.5 version onto the new clean 8.2.6, I get this error:
Boot failed: Umbraco cannot run. See Umbraco's log file for more details.
-> Umbraco.Core.Exceptions.BootFailedException: A connection string is configured but Umbraco could not connect to the database.
at Umbraco.Core.RuntimeState.DetermineRuntimeLevel(IUmbracoDatabaseFactory databaseFactory, ILogger logger)
at Umbraco.Core.Runtime.CoreRuntime.DetermineRuntimeLevel(IUmbracoDatabaseFactory databaseFactory, IProfilingLogger profilingLogger)
at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer)
Does anyone have an idea on how to make this work? I've been reading various posts but most are about Azure. This is on localhost.
Versions 7.15.5 and 8.6.6 work on their own using the MDF file, it is very strange.
I managed to get it work. It seems like there was an issue with my MSSQL installation and how I was adding the mdf file.
I uninstalled and reinstalled SQL entirely, then I would completely shut down IIS and replace the mdf file. Sometimes however, it seems like it kept the previous mdf file still open so I had to restart, it would then work.
Localhost upgrade error "A connection string is configured but Umbraco could not connect to the database."
Hi! I am trying to upgrade from 7.15.5 by going through an intermediate version like 8.2.6 before going to 8.6.6. This is because of a bug that doesnt allow direct upgrade from 7.15.5 to 8.6.6, but when I copy the MDF file from my 7.15.5 version onto the new clean 8.2.6, I get this error:
Does anyone have an idea on how to make this work? I've been reading various posts but most are about Azure. This is on localhost.
Versions 7.15.5 and 8.6.6 work on their own using the MDF file, it is very strange.
Thank you! Genc
In your web.config the connection string should look like this:
Where Umbraco.sdf is your database name.
It should also be located in the App_Data folder.
If that is correct, check the permissions.
Thank you Aaron, it does look like that, thank you for confirming. When you say permissions you mean SQLExpress database permissions?
I was thinking more IIS permissions, but if you are using IIS Express then this shouldn't be an issue.
I can't be of anymore help, I have only ever migrated Umbraco 7 -> 8 with SQL rather than SQL Compact
I managed to get it work. It seems like there was an issue with my MSSQL installation and how I was adding the mdf file.
I uninstalled and reinstalled SQL entirely, then I would completely shut down IIS and replace the mdf file. Sometimes however, it seems like it kept the previous mdf file still open so I had to restart, it would then work.
is working on a reply...