To use this provider you need to put such changes to web.config
<appSettings>
    ...
    <add key="enableSimpleMembership" value="false" />
    ...
</appSettings>
and
<system.web>
    <membership defaultProvider="MongoMembershipProvider">
      <providers>
        <clear />
        <add name="MongoMembershipProvider" type="ExtendedMongoMembership.MongoMembershipProvider, ExtendedMongoMembership" connectionStringName="mongodb"/>
      </providers>
    </membership>
    <roleManager enabled="true" defaultProvider="MongoRoleProvider">
      <providers>
        <clear />
        <add name="MongoRoleProvider" type="ExtendedMongoMembership.MongoRoleProvider, ExtendedMongoMembership" connectionStringName="mongodb" />
      </providers>
    </roleManager>
    ...
</system.web>
Connection string format:
<connectionStrings>
    <add name="mongodb" connectionString="mongodb://127.0.0.1/membership" />  </connectionStrings>

Last edited Mar 27, 2013 at 6:51 AM by F0rc0sigan, version 5

Comments

No comments yet.