KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have implemented a custom membership provider using LINQ to SQL. When I added the Membership provider to my asp.net mvc website in the web config the logon page stopped working. My Web.config setup: <membership> <providers> <clear/> <add name="MyMembershipProvider" type="MyMembership.MyMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" applicationName="/"/> </providers> </membership> The error I get is the following: Parser Error Message: Default Membership Provider could not be found. Source Error: Line 53: <forms loginUrl="~/Account/LogOn" timeout="2880"/> Line 54: </authentication> Line 55: <membership> Line 56: <providers> Line 57: <clear/> I am stuck on where to proceed from here. I can't set a break point since the error seems to be called out of the main code. I am using the standard membership code that comes with the default project of asp.net mvc. The membership provider is implemented in a separate assembly that is included in the web project. Any help would be greatly appreciated. Thanks!
Tags (comma-separated)
Save Edits
Cancel