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

Forums / Developing with Sitefinity / Extend TelerikMembershipProvider

Extend TelerikMembershipProvider

5 posts, 0 answered
  1. Ross Reichardt
    Ross Reichardt avatar
    31 posts
    Registered:
    14 Aug 2009
    25 Feb 2010
    Link to this post

    Hi,

    I am trying to extend the TelerikMembershipProvider to the ability to force the user to change their password after a defined period.

    To do that, I have created by own MembershipProvider which inherits TelerikMembershipProvider and overrides some of the methods. when I run my provider I get the following error:

    Nolics.ORMapper.Base.NolnetException : The database class Telerik.DataAccess.Private.Variable has not been registered. Use DataConnection.Initialize or DataConnection.RegisterAssembly to register an assembly.

    I have seen some other forums posts which look similar but can't see what is causing this error. Can you please help me to understand what this error is telling me and how I can overcome it?

    Many thanks,

    Ross Reichardt.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    25 Feb 2010
    Link to this post
    Hi Ross Reichardt,

    In your provider try overriding Initialize

    public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config)
            {
                DataConnection.Initialize(false, typeof(TelerikMembershipProvider).Assembly);
                base.Initialize(name, config);
      
            }

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Dave
    Dave avatar
    37 posts
    Registered:
    26 Dec 2008
    26 Feb 2010
    Link to this post
    Hi Ivan!

    I'm facing the same problem as Ross. I'm trying to extend TelerikMembershipProvider an getting the same error. Because I'm using Linq2SQL and StoredProcedure there is no DataConnection.Initialize available only the DataContext from Linq2SQL. Am I missing something? Could you please give me an advice?

    Thanks, Dieter
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    26 Feb 2010
    Link to this post
    Hi Dieter,

    When you use LINQ-SQL, the database is accessed through a DataContext object. The DataContext can be created either by passing a connection string, or an actual connection object. Then the framework handles opening the connection and non-explicit transactions.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Ross Reichardt
    Ross Reichardt avatar
    31 posts
    Registered:
    14 Aug 2009
    01 Mar 2010
    Link to this post

    Hi Ivan.

    Brilliant! Thank you - that solved it for me.

    Best regards,

    Ross.

Register for webinar
5 posts, 0 answered