我正在关注“RESTful WCF服务”教程.但是,当我构建我的应用程序时,我收到此错误:
The type or namespace name ‘ApplicationUser’ could not be found (are you missing a using directive or an assembly reference?)
c:\users\basma\documents\visual studio 2013\Projects\OnlineStore2\OnlineStore2_Client\App_Start\IdentityConfig.cs
我搜索了很多答案,其中谈到“Microsoft ASP.NET Identity.owin”,但我添加了这个引用,但仍然得到这个错误
解决方法
@H_404_12@ 创建一个名为ApplicationUser的类,该类派生自IdentityUser.它不需要任何属性或方法,但您可以随意扩展它,以及您希望存储的有关系统上每个用户的任何信息(想想名称,地址等).public class ApplicationUser : IdentityUser { public virtual string Email { get; set; } // example,not necessary }