1
votes

Path is concatenating with database name

CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'C:\Users\fahidNinjaDomain.DomainModel.NinjaContext.mdf'. CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

It should be like this

C:\Users\fahid\NinjaDomain.DomainModel.NinjaContext.mdf

How can I solve this using update-database -verbose?

1
There is a "\" missing in the path. It should be "C:\Users\fahid\...", not C:\Users\fahid..." - Progman

1 Answers