c# - How to manage a SQL database for use with a Forms Authentication web site from another web site that is using Windows Authentication -
i have sql database (call userstore) used forms authentication web site. created aspnet_regsql features sqlmembershipprovider , sqlroleprovider.
i want manage sql database web site uses windows authentication, websiteadmin. however, rolemanager appears prevent windows user accessing websiteadmin web site.
attempt a added "rolemanager" , "membership" section web.config file websiteadmin web site (.net framework 4.5.1) proper information. however, cannot access websiteadmin web site. prompted credentials, enter valid credentials windows user, not accepted. believe because system not recognize user member of role can access web site because checking against roles in userstore database. should checking see if member of windows group.
attempt b tried adding "membership" section web.config file , can access web site without being prompted credentials. however, when access web page displays users , roles userstore database, error.
the role manager feature has not been enabled
the statement causing error is
system.web.security.roles.getrolesforuser(susername);
i sure database, role manager, , membership provider correct, used in forms authentication web site without problems.
how can access websiteadmin web site without being subject rolemanager?
thanks help.
Comments
Post a Comment