Custom Membership Provider - Invalid type specified Telerik.

Posted by Community Admin on 04-Aug-2018 16:28

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

All Replies

Posted by Community Admin on 30-Jan-2012 00:00

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

Posted by Community Admin on 01-Feb-2012 00:00

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

Posted by Community Admin on 01-Feb-2012 00:00

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.

Posted by Community Admin on 01-Feb-2012 00:00

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

Posted by Community Admin on 06-Feb-2012 00:00

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

This thread is closed