Aspnetcore.docs: can't create .mdf file because it is missing a \ divider

Created on 13 Nov 2019  Â·  3Comments  Â·  Source: dotnet/AspNetCore.Docs

I have followed along with this tutorial. I am on windows. I note that this page says we will be using sqlite, but when I create the migration, it says that it is "using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None".
When I try to run the Update-Database command, I get an error that access is denied while attempting to open or create the physical file C:\Users\gregvRazorPagesMovieContext-53b8cccb-6e84-4a19-8c01-d086db07b19c.mdf'. Notice the lack of a '\' between gregv and 'RazarPagesMovie....
You may want to point people to where to fix this.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Source - Docs.ms

Most helpful comment

To fix this issue you must install Cumulative Update for SQL Server 2017. Latest version is available on https://support.microsoft.com/en-ca/help/4515579/cumulative-update-17-for-sql-server-2017

All 3 comments

To fix this issue you must install Cumulative Update for SQL Server 2017. Latest version is available on https://support.microsoft.com/en-ca/help/4515579/cumulative-update-17-for-sql-server-2017

That did fix it BTW.

@tdykstra this comes up every month. I'll ping you when I need to find it again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danroth27 picture danroth27  Â·  3Comments

Rick-Anderson picture Rick-Anderson  Â·  3Comments

Raghumu picture Raghumu  Â·  3Comments

aaron-bozit picture aaron-bozit  Â·  3Comments

nenmyx picture nenmyx  Â·  3Comments