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

问题描述

我也跟着从下面的链接中的步骤,这样我可以验证电子邮件添加到我的项目:

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,其中文件可我插入我的code?

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

推荐答案

有关的Visual Studio的2013思想,会使事情变得更容易一些更新微软显然删除IdentityConfig.cs文件。然而,由于更新4他们增加了回来。此外,身份已经看到过去几年许多变化。这用于为2.0和2.1的工作方案不再适用于当前版本。

Microsoft apparently removed IdentityConfig.cs file for some updates of Visual Studio 2013 thinking that would make things easier. However, since Update 4 they have added it back. Moreover, Identity has seen many changes over the years. Solutions that used to work for 2.0 and 2.1 no longer works for current version.

下面是你可以做什么:
您需要更新您的Visual Studio 2013年更新4级或以上。现在我认为,最近的更新是5。

Here is what you can do:You need to update your Visual Studio 2013 to Update 4 or above. Right now I think the latest update is Update 5.

一旦你这样做,你会发现,它会自动将文件IdentityConfig.cs在您的项目(MVC模板)。

Once you do that you will find that it automatically adds the IdentityConfig.cs file in your project(MVC template).

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

07-12 09:10