(828) 862-6667

Sitefinity Blogs


  • Little known Sitefinity configuration settings
  • More detailed examples for Sitefinity component usage
  • Work-arounds for Sitefinity limitations
  • Discoveries and Ah-Ha moments 

Sitefinity: Active Directory Membership Provider has not been initialized

by Rich Winslow | May 13, 2010

If you are trying to enable login to sitefinity using the active directory, you may encounter the following error:

The Active Directory Membership Provider has not been initialized.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The Active Directory Membership Provider has not been initialized.

Source Error:

Line 27: void Login1_Authenticate(object sender, AuthenticateEventArgs e)
Line 28: {
Line 29: e.Authenticated = UserManager.Default.ValidateUser(this.Login1.UserName, this.Login1.Password);
Line 30: }
Line 31:

Source File: c:\Users\winslorj\Code\AutomatedResultsCom\website\Sitefinity\Login.aspx.cs Line: 29

This simply means that the connectionUsername and/or connectionPassword is not a valid active directory account.  You must provide a connection user and password for role management and membership management.  Thus, make sure you have these attributes and that they match a valid active directory account.

 

<roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="Sitefinity">
<providers>
<clear/>
<add name = "Sitefinity"
    connectionStringName = "ActiveDirectory" 
    connectionUsername="ar\SitefinityService"
    connectionPassword="somePassword"
    groupMaps = "SitefinityAdmin"
    type = "Telerik.Security.ActiveDirectory.TelerikADRoleProvider, Telerik.Security"
/>

<add connectionStringName="DefaultConnection" applicationName="/" name="Public"      type="Telerik.DataAccess.AspnetProviders.TelerikRoleProvider, Telerik.DataAccess"/>

</providers>
</roleManager>

<membership defaultProvider="Sitefinity" userIsOnlineTimeWindow="15" hashAlgorithmType="">
<providers>
<clear/>
<add connectionStringName="ActiveDirectory"
    enableSearchMethods="true"
    attributeMapUsername="sAMAccountName" 
    connectionUsername="ar\SitefinityService"
    connectionPassword="somePassword"
    name="Sitefinity"
    type="Telerik.Security.ActiveDirectory.TelerikADMembershipProvider, Telerik.Security" />

<add name="Public" connectionStringName="DefaultConnection"     type="Telerik.DataAccess.AspnetProviders.TelerikMembershipProvider, Telerik.DataAccess" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" passwordStrengthRegularExpression="" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>

 

3 Comments

  1. 1 nike free run 11 May
    sn’t necessarily mean stocking tennis courts <strong><a href="http://www.nikefreerunargentina.com/nike%C2%A0free%C2%A070%C2%A0hombres-c-1.html" title="Nike Free 7.0">Nike Free 7.0</a></strong> using pro-government all judges, nevertheless sceptics hesitation they are able to fight your provocation. Your referendum <strong><a href="http://www.nikefreerunargentina.com/nike%C2%A0free%C2%A0run%C2%A02%C2%A0mujer-c-38.html" title="mochilas nike precios">mochilas nike precios</a></strong> in <strong><a href="http://www.nikefreerunargentina.com/nike%C2%A0free%C2%A070%C2%A0hombres-c-1.html" title="nike shop argentina">nike shop argentina</a></strong> addition involves brand-new boundaries in <strong><a href="http://www.nikefreerunargentina.com/nike%C2%A0free%C2%A060%C2%A0hombres-c-23.html" title="Nike 6.0">Nike 6.0</a>
  2. 2 lv bags 02 May


    called products no lv handbag 2011 louis vuitton outlet problem ;the kate moss louis vuitton 2011 investigation, the louis vuitton monogram macassar health care product approval certificate. lv handbags 2011 macassar lv
  3. 3 jordan sneakers 25 Apr
    gucci baby shoes gucci agenda planner repeated requests, gucci duffel bag wife gucci 1973 small shoulder bag gucci store of showed reporters gucci briefcases for men the.

Comment

  1.    
     
     
      
       

Why Give Our Secrets Away?

I often get asked why I'm willing to journal all of my Sitefinity discoveries. People think I'm insane to give away for free what I labored over at some point.

Let me answer that in 2 parts:

  • Why journal my discoveries?

    Because I forget and I want to a library of knowledge to refer back to. Oh but it is far worse than that... THREE TIMES now, I've gone to Google and searched for a solution to a problem, only to find MY OWN BLOG entry is #1 in Google and viola! there's the solution!
  • Why give it away for free?

    Because others have been kind enough to do it for us; what goes around, comes around.

    There are all levels of experience, thus someone with less experience may defer to us when needed.

    The lines of 'competition' are very much blurred; in our minds competition is a potential customer or partnership in the right situation.

    We maintain healthy partnerships with one of our competitors; they come to us when they need help and visa versa.

    There is plenty of work out there for everyone if you are putting out quality work and you are straightforward with clients and competition.

Talk to us about how we can help YOU!

 


Don't miss out!

Keep up with our Sitefinity discoveries!
Click on the RSS feed icon below or sign up for our newsletter.


Email Address:
     















Company Info  |   Contact Us  |   Site Map  |   Terms  |   Privacy Policy  |  

Automated Results Computer Consulting LLC, 222 South Caldwell Street, Brevard, NC 28712 (828) 862-6667