I had ideas for extending DNNRoleProvider. I added function GetRolesByGroupName into:
- DotNetNuke.Security.Membership.Data.DataProvider
- DotNetNuke.Security.Membership.Data.SqlDataProvider (inherit DataProvider)
- DotNetNuke.Security.Membership.DNNRoleProvider
- DotNetNuke.Security.Roles.RoleProvider
- DotNetNuke.Security.Roles.RoleController
I builded successful. But when run site, error appeared : "The type initializer for 'DotNetNuke.Security.Roles.RoleController' threw an exception".
I debuged it. Error appear at BuildManager.GetType(TypeName,True,True) in DotNetNuke.Framework.Reflection in Reflection.VB . TypeName in BuildManager.GetType had value not change in two case :Core before and after add GetRolesByGroupName .
I don't know for this Error ! Can you help me ! Thanks !