Recreate Umbraco 14 database
# help-with-umbraco
h
How do I do this, I assumed as previously you just empty the umbracDbDsn name, but that is giving me an error
Copy code
"ConnectionStrings": {
    "umbracoDbDSN": "",
    "umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite"
  }
InvalidOperationException: The factory has not been configured with a proper connection string. Umbraco.Cms.Infrastructure.Persistence.UmbracoDatabaseFactory.Initialize()
m
can you just delete the slqlite file(s) in /umbraco/data? leaving the connection string the same.
h
will give it a shot
No 🤣
m
do you have unattended install settings?
h
Sorted, seems it was something to do with VS, restarted VS and now it goes through the Umbraco setup as expected, very odd!
n
If you get stuck again, try clearing the cookies for localhost too
o
For the past month or two, Visual Studio (pre-release) has been unhelpfully "Accelerating" my builds without actually rebuilding what I changed... so changes like app settings don't apply unless I hit rebuild before run. could be that?
s
People.. please stop using "Rebuild" you don't need it! Only on very rare occasions 😅
o
By "rebuild" I actually mean "build" sorry 😝 I usually just use hot reload, but that's currently broken on the visual studio pre-release 😭 (and just pressing run causes it to "accelerate" and doesn't build any changes lol) I really gotta get back onto the stable release haha
s
good good! someone should kill the rebuild button in VS already haha
h
looks like the only way is to restart VS then it works fine
m
interested to know what the rare occasions are and also why the aversion? for me during nuget development rebuild (aka clean and build?) has helped make sure the right assets are being delivered and not just pre-existing on disk.
h
Aaarrrgggghhhh! now that isn't working either 🤣
s
General compiles never need a full clean and build. You're waiting longer for no purpose. VS and Rider are VERY good at only updating the dlls that need updating based on the changes you made. The only legit purpose I've found so far was after switching to a newer .NET version, conflicting old dlls were left behind, I needed to do a clean first. Once you're ready to release your nuget package definitely make sure you clean first, in case old assets are left behind, but that's part of a
dotnet pack
, not day to day development.
m
👍 though not sure that means remove the rebuild button.. just be aware what it's for.. eg = clean and build.
and day to day aren't we just hitting the debug button or f5 anyway?
(or ctrl+f5 for run without debugging?)
h
Well, I'm getting closer to an Umbraco 14 release for my Forum 😄 just need to sort out one thing now (menu tree action for member record to resend the validation email)
s
this is my aversion, I see so many people tapping Rebuild out of some kind of habit because they got an error ONCE and thought that rebuild helped (99% of those times they were mistaken, it wasn't the rebuild that helped - this is a scientific number of course, I didn't just make that percentage up 😛 ).
84 Views