Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tony Kiernan 278 posts 341 karma points
    Oct 18, 2013 @ 13:45
    Tony Kiernan
    0

    Using External ASPNetMembership Provider v6.1.6

    I'm trying to wire up the members on the site to use .Net Membership from another database.  I've ammended my web.config as follows

    <connectionStrings>
        <remove name="umbracoDbDSN" />
        <add name="umbracoDbDSN" connectionString="server=SQLSERVER;database=DATABASE;user id=USER;password=PASSWORD" providerName="System.Data.SqlClient" />
        <!-- Important: If you're upgrading Umbraco, do not clear the connection string / provider name during your web.config merge. -->
        <add name="MYDbDSN" connectionString="server=SQLSERVER;database=MYDATABASE;user id=USER;password=PASSWORD" providerName="System.Data.SqlClient" />
     </connectionStrings>
     <system.web>
       
        ....
       
        <!-- Membership Provider -->
        <membership defaultProvider="MYMembershipProvider" userIsOnlineTimeWindow="15">
          <providers>
            <clear />
            <!--MEMBERS-->
            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
            <add name="MYMembershipProvider"
                 type="System.Web.Security.SqlMembershipProvider"
                 connectionStringName="MYDbDSN" applicationName="/"
                 enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
            <!--USERS-->
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
          </providers>
        </membership>
        <!-- added by NH to support membership providers in access layer -->
        <roleManager enabled="true" defaultProvider="MYRoleProvider">
          <providers>
            <clear />
            <add name="UmbracoRoleProvider" type="umbraco.providers.members.UmbracoRoleProvider" />
            <add name="MYRoleProvider"
                 type="System.Web.Security.SqlRoleProvider"
                 connectionStringName="MYDbDSN" applicationName="/" />
          </providers>
        </roleManager>
    </system.web>

    But when I access the members tab in the back office, I'm just getting the spinning disc (in the tree bit).  Any ideas?  Or have I missed something glaringly obvious?

  • Graeme W 113 posts 289 karma points
    Nov 07, 2013 @ 17:17
    Graeme W
    0

    Hi Tony. Did you manage to resolve this ?

    I'm just about to start trying to do the same thing ...

  • Tony Kiernan 278 posts 341 karma points
    Nov 07, 2013 @ 17:40
    Tony Kiernan
    0

    Sorry, no.

  • Graeme W 113 posts 289 karma points
    Nov 08, 2013 @ 11:04
    Graeme W
    0

    I've cracked it! *

    You need to set an application name for both the membership provider and role membership provider. My umbraco config file is the same format as yours but the parts where it says applicationName="/" I replaced "/" with the application name I'm using in the config file of the application I want to connect to. I can now view all the member and role details from my other app within Umbraco. I got the idea from this page

    http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx

    * actually I've only half cracked it as it crashes if I try and update  member details. Also the ability to reset passwords has been lost. Looking into those things now....

  • Graeme W 113 posts 289 karma points
    Nov 08, 2013 @ 16:58
    Graeme W
    0

    What I'm stuck on appears to be recognized as a known bug

    http://issues.umbraco.org/issue/U4-2694

     

Please Sign in or register to post replies

Write your reply to:

Draft