I am following the "RESTful WCF Service" tutorial. But when I built my application I get this error:
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
I've searched and many answers where talking about "Microsoft ASP.NET Identity.owin" but I added this reference but still get this error
Create a class called ApplicationUser that derives from IdentityUser. It doesn't need to have any properties or methods, but you can freely extend it with any information you want to store about each user you have on the system (think name, addresses, etc.).
public class ApplicationUser : IdentityUser
{
public virtual string Email { get; set; } // example, not necessary
}
Linking the namespace
using YourProjectName.Models;
worked for me. In the post's case, "YourProjectName" is "OnlineStore2"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With