Custom Membership Provider - Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider
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
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,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.
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
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,