locked
Adding Roles to MS AS Cube - The roles provider named Dso Roles Provider' could not be found in configuration. RRS feed

  • Question

  • Hi There,

    From C# code I am trying to add a code to the MS SQL Server 2008 Analysis Service Cube and I am getting excpetion  as

    The roles provider named 'XX Dso Roles Provider' could not be found in configuration.

    _RoleProvider = (ASRP.

    RoleProvider) RolesFactory.GetRolesProvider(rolesProviderName); I am using the MS Entlb as shown below.

    namespace

    public sealed class RolesFactory

    {

    public static IRolesProvider GetRolesProvider();

    public static IRolesProvider GetRolesProvider(string rolesProviderName);

    public static IRolesProvider GetRolesProvider(string rolesProviderName, ConfigurationContext context);

    }

    }

     Microsoft.Practices.EnterpriseLibrary.Security{
    Thursday, November 8, 2012 5:14 AM

Answers

  • Hi Svasu,

    Welcome to the MSDN Forum.

    Based on the error message, it seems that you are missing the provider in config file, did you check it?

    Is it true?

    Here is an example about how to implement a role provider: http://msdn.microsoft.com/en-us/library/8fw7xh74(v=vs.100).aspx 

    Try it, please.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    • Edited by Mike Feng Friday, November 9, 2012 1:54 PM
    • Marked as answer by Mike Feng Friday, November 23, 2012 11:24 AM
    Friday, November 9, 2012 1:52 PM