fresh os, fresh vs 2015, all i do is create new mvc project with individual authentication and once i try to register it give me that error (i edit nothing, i delete nothing)
Server Error in '/' Application.
The system cannot find the file specified
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ComponentModel.Win32Exception: The system cannot find the file specified
Source Error:
Line 153: { Line 154: var user = new ApplicationUser { UserName = model.Email, Email = model.Email }; Line 155: var result = await UserManager.CreateAsync(user, model.Password); Line 156: if (result.Succeeded) Line 157: {
Source File: c:\users****\documents\visual studio 2015\Projects\WebApplication5\WebApplication5\Controllers\AccountController.cs Line: 155
Stack Trace:
[Win32Exception (0x80004005): The system cannot find the file specified]
I've had the same problem, I have found a solution to it .. problem exists in ConnectionString , change it from :
connectionString="Data Source(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-WebApplication3-20160303101342.mdf;Initial Catalog=aspnet-WebApplication3-20160303101342;Integrated Security=True"
To :
connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=YourDatabaseName;Data Source=YourServerName"
And it will work without any other changes