More in this section

Forums / General Discussions / build key Build Key[Telerik.Sitefinity.Security.RoleManager, SqlProvider]) failed

build key Build Key[Telerik.Sitefinity.Security.RoleManager, SqlProvider]) failed

2 posts, 0 answered
  1. Sean
    Sean avatar
    4 posts
    Registered:
    08 Sep 2010
    09 Sep 2010
    Link to this post
    I've added custom membership and role provider settings to the 
    SecurityConfig.config and added a connection string they use to the DataConfig.config.
    I want to use .NET built in role and membership providers using the aspnet_Roles and
    aspnet_Membership tables. This is in a different db than the Sitefinity db.
    The DataConfig.config has both connection strings.
    My new custom role provider uses the connectionstring to the DB with the ASP.NET role
    and membership tables.

    My custom roleprovider settings added to SecurityConfig.config are:  
    <add name="SqlProvider" type="System.Web.Security.SqlRoleProvider,
    System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    connectionStringName="CustomProviders" applicationName="/" />

    I didn't use the CMS editor since I didn't see a way to add a connectionStringName

    I changed the  Settings> Configuration> Security> DefaultBackendRoleProvider
    to my custom provider called SqlProvider.

    I figured this way I can log in using Sitefinity's default membership provider
    and see if I can use my custom role provider to work and display roles from my db's
    aspnet_Roles table which the controls the CMS will manage are using. I eventually want to
    do this for a custom membership provider but I want to get this working first.

    I was able to login as expected (since I didn't change the
    DefaultBackendMembershipProviderhowever) however now I'm getting the following error
    when I click Settings>Roles

    build key Build Key[Telerik.Sitefinity.Security.RoleManager, SqlProvider]) failed:
    The parameter providerName could not be resolved when attempting to call
    constructor Telerik.Sitefinity.Security.RoleManager(System.String providerName,
    System.String transactionName). (Strategy type BuildPlanStrategy, index 5)]

    I added a post yesterday but am posting again as since then I got a little further
    and have a different exception...if there isn't a good enough explanation here
    please see my post yesterday.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    16 Sep 2010
    Link to this post
    Hi Sean,

    Standard ASP.NET Role, Membership and Profile providers cannot work properly in Sitefinity 4.0 BETA, because of a missing implementation in our wrappers that "converts" all data. The error you get is called from Enterprise library due to issues caused by our code. We will ensure that there will not be issues with standard providers for the RC of Sitefinity. I am sorry if this have caused any inconvenience for you.

    Greetings,
    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
2 posts, 0 answered