Muhammad Nasir
Muhammad Nasir

Reputation: 2204

MVC Identity failed with the operating system error 5

I have Created MVC project in Visual studio 2015 .when i try to register user program throw following error.

Directory lookup for the file "c:\users\faheem\documents\visual studio 2015\Projects\WebApplication4\WebApplication4\App_Data\aspnet-WebApplication4-20160311011345.mdf" failed with the operating system error 5(Access is denied.). CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

Upvotes: 2

Views: 767

Answers (1)

BluePigeon
BluePigeon

Reputation: 1812

System error 5 means you didn't run Visual Studio in administrator mode. Right click the program and click on Run as administrator.

Upvotes: 1

Related Questions