I have a problem when trying to add yaf to an existing website with already created membership and roles. I'm not exactly sure how to do it but what I've tried to do is add the yaf roles, membership, and profile to the exisiting web.config file. Everything works fine until I try to migrate existing users over to yaf. I then receive the following error. This is from the install process and the user doesn't exist until I add him as the admin user on the previous step. Any ideas what I might be doing wrong?
The user 'bryan' is already in role 'Administrators'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.Provider.ProviderException: The user 'bryan' is already in role 'Administrators'.
Source Error:
Line 190: {
Line 191: RoleMembershipHelper.SyncRoles( PageBoardID );
Line 192: RoleMembershipHelper.SyncUsers( PageBoardID );
Line 193: }
Line 194: e.Cancel = false;
Source File: d:\wwwroot\aamro\site\forums\install\default.aspx.cs Line: 192
Stack Trace:
[ProviderException: The user 'bryan' is already in role 'Administrators'.]
System.Web.Security.SqlRoleProvider.AddUsersToRolesCore(SqlConnection conn, String usernames, String roleNames) +2238010
System.Web.Security.SqlRoleProvider.AddUsersToRoles(String[] usernames, String[] roleNames) +705
System.Web.Security.Roles.AddUserToRole(String username, String roleName) +341
YAF.Classes.Utils.RoleMembershipHelper.MigrateUsersFromDT(Int32 pageBoardID, Boolean approved, DataTable dt) +3062
YAF.Classes.Utils.RoleMembershipHelper.SyncUsers(Int32 pageBoardID) +254
YAF.Install._default.Wizard_NextButtonClick(Object sender, WizardNavigationEventArgs e) in d:\wwwroot\aamro\site\forums\install\default.aspx.cs:192