Open craigaporter opened 8 years ago
Hey @craigaporter, I didn't worked on this one, but as we are using EF top versions and Code First approach you just run the migrations.
To fix this, I created the database "appointment-reminders" and modified the web.config connectionStrings / DefaultConnection from this: "Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\appointment-reminders.mdf;Initial Catalog=appointment-reminders;Integrated Security=True"
To this: "Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=appointment-reminders;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"
Then run Package Manager Update-Database
Had the same issue. App_Data folder was missing (even if it appers in the solution, its not includd in the project). Select the Web project, right click and select Add Asp.Net folder -> App_Data This would add the folder. Then run Update-database command in the Nugget console. This would resolve the issue.
** I also ran Update-Package as part of trial and error, while fixing this. Not sure if this is needed.
Hello,
Maybe I'm being simple, but I can't find appointment-reminders.mdf in the git repo?