我的C#Web应用程序项目中缺少IdentityConfig.cs [英] IdentityConfig.cs is missing in my C# web application project

查看:479
本文介绍了我的C#Web应用程序项目中缺少IdentityConfig.cs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照以下链接的步骤,以便我可以在我的项目中添加电子邮件验证:

I followed the steps from below link so that I could add Email verification to my project:

http: //www.asp.net/web-forms/overview/security/create-a-secure-aspnet-web-forms-app-with-user-registration,-email-confirmation-and-password-reset#addRes

我想知道IdentityConfig.cs在哪里,我的项目中找不到这个文件。

I am wondering where is IdentityConfig.cs and I can't find this file in my project.

而不是IdentityConfig.cs,哪个文件可以插入我的代码?

Instead of IdentityConfig.cs, in which file can I insert my code?

推荐答案

当您创建一个空项目。创建MVC项目时,这意味着当您创建新项目时选择mvc勾选框,它将生成包含身份框架的所有模板。那么你们要做的就是创建一个新的MVC项目,并将与身份框架相关的这些文件复制到你的项目中:)

This happens when you create a empty project. When you create a MVC project, that means when you select mvc tick box as you create the new project it will generate all the templates including the identity framework. So what you guys have to do is create a new MVC project and copy those files related to identity framework in to your project :)

这篇关于我的C#Web应用程序项目中缺少IdentityConfig.cs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆