I am creating a console application that will automatically create users into a database of a web application that is built in mvc and uses the built in membership provider and roles for forms authentication.
How can I use the AccountMembershipService
and MembershipCreateStatus
classes from that in a console application??? I've added assemblies and refrences to System.Web
and System.Web.Mvc
and security etc but cannot get it to recognise those classes.
Copy the relevant elements from your web projects web.config
into the winforms app.config
.
System.Web.Mvc
is not required, and you'll also have to change from Net 4 Client Profile
to .NET 4
under project settings.
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