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

Forums / Security / Reusing the Sitefinity Membership and Role providers

Reusing the Sitefinity Membership and Role providers

4 posts, 0 answered
  1. Darren
    Darren avatar
    72 posts
    Registered:
    19 Mar 2008
    25 Sep 2009
    Link to this post
    Is there a way to use the built in Sitefinity Membership and Role providers in another website?

    Essentially a client is running a Sitefinity based website but they are not happy with the features provided through the forum module and want to switch to YAF (YetAnotherForum.net).
    However, they want to keep the login as a single share system so I'm looking at replacing the YAF Membership and Role providers with the Sitefinity providers but still keeping the YAF Profile provider.

    I don't know if you're familiar with YAF and so could provide clues to an alternative approach to integrating Sitefinity with YAF?
    I've copied the Telerik.DataAccess.dll and Nolics.Engine.v4.2.dll files across and copied the Membership and Role blocks across from the Sitefinity web.config file along with a suitable connection string to the Sitefinity database but I just get the error that it can't load the Telerik.DataAccess.AspnetProviders.TelerikRoleProvider type so presumably theres further dependencies I'm missing.

    Thanks in advance for any help.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Sep 2009
    Link to this post
    Hello Darren,

    Thank you for using our services.

    There is a reference to Telerik.Framework.dll. Please move this assembly to the new project. I hope that this will fix the problem.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. John White
    John White avatar
    20 posts
    Registered:
    29 May 2010
    26 Jun 2010
    Link to this post
    I've picked up the Telerik.DataAccess dll and the Nolics.Engine.v4.2.dll and Telerik.Framework dll and copied them to my MVC application bin folder.  I'm using Membership, Profile and Roles from Telerik.  Still missing something.

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Object reference not set to an instance of an object.

    Source Error:

    Line 91:       <providers>
    Line 92:         <clear/>
    Line 93: <add connectionStringName="DefaultConnection" applicationName="/" name="Sitefinity" type="Telerik.DataAccess.AspnetProviders.TelerikRoleProvider, Telerik.DataAccess"/>Line 94:       </providers>
    Line 95:     </roleManager>
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    28 Jun 2010
    Link to this post
    Hi John White,

    Could you please show us your web.confing? Do you have the dataaccess section configured?

    All the best,
    Radoslav Georgiev
    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
Register for webinar
4 posts, 0 answered