From your error message, it occurs as the ASP.NET Universal Providers packages include a web.config transform that will update your web.config to add the Universal Provider configuration. When WebSecurity tries to use the configured ASP.NET Membership Provider,
it checks if it can be cast to an ExtendedMembershipProvider before doing anything else. Please refer to @kevinstone's link, it will help you to solve your problem.
Thanks.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
GorillaMann
Member
117 Points
332 Posts
Help with error must be an instance of "ExtendedMembershipProvider
Jan 03, 2013 10:12 PM|LINK
I've being trying to get a asp mvc 4 project to use the simplemembership but I keep getting this error:
To call this method, the "Membership.Provider" property must be an instance of "ExtendedMembershipProvider".
I've installed the universal providers and removed the defualt tags in web config and added this to appSettings:
<add key="enableSimpleMembership" value="true" />
what next
kevinstone
Member
236 Points
48 Posts
Re: Help with error must be an instance of "ExtendedMembershipProvider
Jan 03, 2013 10:26 PM|LINK
check this
http://weblogs.asp.net/jgalloway/archive/2012/08/29/simplemembership-membership-providers-universal-providers-and-the-new-asp-net-4-5-web-forms-and-asp-net-mvc-4-templates.aspx
Chen Yu - MS...
All-Star
21829 Points
2513 Posts
Microsoft
Re: Help with error must be an instance of "ExtendedMembershipProvider
Jan 07, 2013 07:52 AM|LINK
Hi,
From your error message, it occurs as the ASP.NET Universal Providers packages include a web.config transform that will update your web.config to add the Universal Provider configuration. When WebSecurity tries to use the configured ASP.NET Membership Provider, it checks if it can be cast to an ExtendedMembershipProvider before doing anything else. Please refer to @kevinstone's link, it will help you to solve your problem.
Thanks.
Feedback to us
Develop and promote your apps in Windows Store
GorillaMann
Member
117 Points
332 Posts
Re: Help with error must be an instance of "ExtendedMembershipProvider
Jan 08, 2013 01:29 PM|LINK
Hi, I'm now getting this error even though I have these librarys
Parser Error Message: Could not load file or assembly 'WebMatrix.WebData' or one of its dependencies. The system cannot find the file specified.
Chen Yu - MS...
All-Star
21829 Points
2513 Posts
Microsoft
Re: Help with error must be an instance of "ExtendedMembershipProvider
Jan 09, 2013 07:06 AM|LINK
Hi,
Have you added that dll reference in WebMatrix? If not, you could add that dll reference by below thread, it will help you.
Please see: http://forums.asp.net/t/892829.aspx/1
Best Regards,
Feedback to us
Develop and promote your apps in Windows Store