Custom Roles Provider won't load on Initialize RRS feed

  • Question

  • User2103134756 posted

    Created a custom roles provider and there seems to be something wrong with the RoleManager section. Everything runs as long as that section is commented out. The error is "Could not load RoleProviderAccess". System.Web Void Initiaize()". This is a website, not a project so, there is no namespace or assembly involved. The module is in the App_Code folder. Everything seems to be pointing to the right places. I have done this once before and took all the same patterns from the other web.config. I refactored all the methods from the base class. I am using static modules in another class to make the actual calls to the stored procedures but would imagine I'd get a syntax error if that were the problem. So, here is the web.config XML and the module declaration.

    <roleManager enabled="true" defaultProvider="CustomRoleProvider">
          <add name="CustomRoleProvider" type="RoleProviderAccess" connectionStringName="AppConnectionString" applicationName="/"/>
    public class RolesProviderAccess : RoleProvider
    } //end of class

    Friday, June 14, 2019 9:51 PM

All replies