troygoode / MembershipStarterKit

The starter kit provides the Asp.Net MVC controllers, models, and views needed to administer users & roles.
http://github.com/TroyGoode/MembershipStarterKit
MIT License
198 stars 66 forks source link

"Email" - Type or namespace expected #22

Closed krokonoster closed 12 years ago

krokonoster commented 12 years ago

In CreateUserViewModel ln.20: [Required, Email]

Changed to (only in my copy): [Required, DataType(DataType.EmailAddress)]

Not sure this is what was supposed to be there?

troygoode commented 12 years ago

The "Email" data annotation is defined in the DataAnnotationsExtensions nuget package (https://github.com/srkirkland/DataAnnotationsExtensions). Make sure you have that and the DataAnnotationsExtensions.MVC3 packages installed.