Error: type name or namespace 'ApplicationUser' not found in Visual Studio 2013

I follow the tutorial "RESTful WCF Service". But when I created my application, I get this error:

Could not find the name of the type or namespace "ApplicationUser" (do you miss the using directive or assembly references?) C: \ users \ basma \ documents \ visual studio 2013 \ Projects \ OnlineStore2 \ OnlineStore2_Client \ App_Start \ IdentityConfig.cs

I searched and many answers saying "Microsoft ASP.NET Identity.owin", but I added this link, but still get this error

+5
source share
2 answers

Create a class called ApplicationUser that comes from IdentityUser. It does not need any properties or methods, but you can freely distribute it with any information that you want to store about each user that you have in the system (name, addresses, etc.).

public class ApplicationUser : IdentityUser { public virtual string Email { get; set; } // example, not necessary } 
+8
source

Namespace binding

 using YourProjectName.Models; 

worked for me. In the mail case, "YourProjectName" is "OnlineStore2"

0
source

Source: https://habr.com/ru/post/1237739/


All Articles