新鲜的操作系统,新鲜vs 2015年,我所做的就是创建新的mvc项目并进行个人身份验证,并且一旦我尝试注册它就会给我那个错误(我编辑不了任何东西,我什么也没删)asp.net mvc 5试图注册新创建的网站时出现错误
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]
它没有解决,命令下面的命令运行,据我知道,我只需要使用当我编辑代码的第一个数据库时迁移,但我甚至没有触及代码,我试图开箱,它不工作 – user3761832
经过数小时的奋斗和几个解决方案的尝试。这一个为我工作,但只在第二次尝试。我想知道为什么这不是默认的。当然,下载Visual Studio并启动一个ASP.NET MVC项目的所有人都不会遇到这个障碍。这是否依赖于环境? – Goose