Copied to clipboard

Flag this post as spam?

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


  • Anders Brännmark 228 posts 280 karma points
    Jun 28, 2010 @ 19:34
    Anders Brännmark
    0

    Membership.GetAllUsers() not working?

    Anyone else tried to use the Membership.GetAllUsers method? When I try on my installation (Umbraco 4.0.4.2) it doesnt work, returns following error

    ArgumentNullException: Key cannot be null.
    Parameter name: key]
       System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +7484510
       System.Collections.Hashtable.Add(Object key, Object value) +11
       System.Web.Security.MembershipUserCollection.Add(MembershipUser user) +129
       umbraco.providers.members.UmbracoMembershipProvider.GetAllUsers(Int32 pageIndex, Int32 pageSize, Int32& totalRecords) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\providers\members\MembersMembershipProvider.cs:497
       System.Web.Security.Membership.GetAllUsers(Int32 pageIndex, Int32 pageSize, Int32& totalRecords) +65

    Anyone else get this error?

  • Anders Brännmark 228 posts 280 karma points
    Jun 28, 2010 @ 20:41
    Anders Brännmark
    3

    Solved. Turned out to be a member that was deleted from umbraco members that still hade some remaning leftovers in the db, proberly due to I might have used the member on a content node with a member picker before the member was deleted. Figured it out by using the getall on umbracos own member api and saw that I had a "blank" member. Chased down the id in all tables and deleted the row where it was present. After that Membership.GetAllUsers worked.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jun 28, 2010 @ 20:44
    Dirk De Grave
    0

    Great feedback Anders, always great if people can provide feedback on what may have been wrong. +1 from me.

     

    Cheers,

    /Dirk

  • Anders Brännmark 228 posts 280 karma points
    Jun 28, 2010 @ 21:51
    Anders Brännmark
    0

    Thanks Dirk!

    As an admin, can you put a request in for marking own answers as solution. Cant seam to find a button for that :-)

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jun 28, 2010 @ 21:57
    Dirk De Grave
    0

    Unfortunately, you (still) can mark your own answer as a solution (would be a bit of a karma hack actually)

     

    Cheers,

    /Dirk

  • Claire Botman 48 posts 77 karma points
    Jul 22, 2010 @ 05:31
    Claire Botman
    0

    Just wanted to thank you Anders, I had this problem too.  The relevant tables incase anyone else is wondering are

    • cmsMember
    • cmsContent
    • cmsContentXml
    • cmsMember2MemberGroup
    • cmsPropertyData
    • umbracoNode
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies