1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Custom Membership Provider - Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider

Custom Membership Provider - Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider

5 posts, 0 answered
  1. Sashank
    Sashank avatar
    7 posts
    Registered:
    29 Jul 2008
    30 Jan 2012
    Link to this post
    Hi,

    We have a custom membership provider that integrates with a CRM. It has been working well with 4.3 and earlier versions. We have now implemented the same custom membership provider for Sitefinity 4.4. However, this is not working anymore. When logging in, we get the following error:

    Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider


    [ArgumentException: Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider]
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +1231
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +63
       Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +297
       Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +123
       Telerik.Sitefinity.Security.UserManager..ctor() +12

    Our custom membership provider inherits from MembershipProvider. We have also tried changing it to inherit from SqlMembershipProvider.

    Our custom Role Provider still works though.

    Any help would be much appreciated.

    Thanks
  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    01 Feb 2012
    Link to this post
    Hello,

     There have been some changes to the MembershipProvider and the SecurityManager from 4.3 to 4.4, so it is possible that something that you customized in 4.3 in that area would not be working in 4.4. However, you have to give me more details on the provider itself (how it is implemented) or open a support ticket and send it to me, so I can say what is causing the problem.

    Regards,
    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Thomas
    Thomas avatar
    223 posts
    Registered:
    19 Jan 2011
    01 Feb 2012
    Link to this post
    Hi Svetoslav,

    In advance, sorry to jump in here to rant.

    How come this breaking change is not mentioned here? (Note: I cannot download the zip from here, but since this change is important and may cause applications to break, I'd expect it to be mentioned in the forum message.)
    This is disappointing, especially since silent membership API breakages have already caused developers headaches in the past (like here, or there).

    Will you ever document such things properly in the future? Or will we never know when updates may break our applications without just trying it?

    Thanks.
  4. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    01 Feb 2012
    Link to this post
    I also would like some clear documentation on how to use custom providers. I have now created a membership provider that inherits from MembershipDataProvider, which should work, but doesn't.

    Since I'm not getting any information about this in the documentation, I have to go on trial and error, but still no luck.

    What problems do you have with yours?

    Daniel
  5. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    06 Feb 2012
    Link to this post
    Hello guys,

     Thank you for the suggestions regarding the documentation. We will consider them when improving our documentation, so that it can live up to the expectations of all users.

    Regards,
    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
5 posts, 0 answered