问题描述
大家好,
我是MVC和身份的新手。
我看了本课程: []
在本课程中,他们创建了一个新项目,之后他们可以直接注册。
如果我理解正确,身份直接创建一个数据库。
当我创建一个项目并尝试注册。我收到一个错误:Win32Exception(0x80004005)系统找不到指定的文件
$ 155 $ b行155:
$ b $bSatır153:{
$ b $bSatır154:var user = new ApplicationUser {UserName = model.Email,Email = model。电子邮件};
$ b $bSatır155:var result = await UserManager.CreateAsync(user,model.Password);
$ b $bSatır156:if(result.Succeeded)
$ b $bSatır157:{
我错过了什么吗?我需要先创建一个db吗?使用旧成员资格我创建一个带有成员资格命令提示的数据库我应该这样做吗?
但是在教程视频中他们没有创建任何数据库。
我尝试过的事情:
我用谷歌搜索了它。但是没有人在开始时遇到这个错误。
Hello everyone ,
I'm new in MVC and also Identity.
I looked to this course :
[^]
In this course , they create a new project and after this they can register directly.
And if i understood correctly , identity create directly a db for this.
When i create a project and tried to register. I got an error about : Win32Exception (0x80004005) The system cannot find the file specified
in line 155 :
Satır 153: {
Satır 154: var user = new ApplicationUser { UserName = model.Email, Email = model.Email };
Satır 155: var result = await UserManager.CreateAsync(user, model.Password);
Satır 156: if (result.Succeeded)
Satır 157: {
Do i miss something ? Need i create a db first ? With old membership i create a db with command promp for membership. Should i make somethink like this ?
But in tutorial videos they didn't create any db.
What I have tried:
I googled it. But no one got this error on the beginning.
推荐答案
这篇关于带有身份寄存器错误的MVC简介的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!