I wrote a function (although it's in VB) that calls the "old user" table, then creates ASPNETDB accounts based on this information. Here it is...
Code:
Public Shared Function Create_New_User(ByVal NewUserName As String, ByVal NewUserPassword As String, ByVal NewUserEmail As String) As String
Dim status As MembershipCreateStatus
Try
Dim newUser As MembershipUser = Membership.CreateUser(NewUserName, NewUserPassword, NewUserEmail, UserQuestion, UserAnswer, True, status)
If newUser Is Nothing Then
Return Create_New_User_GetErrorMessage(status)
Else
If Membership.ValidateUser(newUser.ToString, NewUserPassword) Then
Roles.AddUserToRole(newUser.UserName, "T4K_User")
Return "successful"
End If
Return "successful"
End If
Catch ex As Exception
Return "An unknown error occurred."
End Try
End Function
Public Shared Function Create_New_User_GetErrorMessage(ByVal status As MembershipCreateStatus) As String
Select Case status
Case MembershipCreateStatus.DuplicateUserName
Return "Username already exists. Please enter a different user name."
Case MembershipCreateStatus.DuplicateEmail
Return "A username for that e-mail address already exists. Please enter a different e-mail address or use the password recovery feature."
Case MembershipCreateStatus.InvalidPassword
Return "The password provided is invalid. Please enter a password at least 6 characters long."
Case MembershipCreateStatus.InvalidEmail
Return "The e-mail address provided is invalid. Please check the value and try again."
Case MembershipCreateStatus.InvalidAnswer
Return "The password retrieval answer provided is invalid. Please check the value and try again."
Case MembershipCreateStatus.InvalidQuestion
Return "The password retrieval question provided is invalid. Please check the value and try again."
Case MembershipCreateStatus.InvalidUserName
Return "The user name provided is invalid. Please check the value and try again."
Case MembershipCreateStatus.ProviderError
Return "The authentication provider returned an error. Please verify your entry and try again. If the problem persists, please contact " & SystemDefault_Get(6).ToString & " usng the contact page."
Case MembershipCreateStatus.UserRejected
Return "The user creation request has been canceled. Please verify your entry and try again. If the problem persists, please contact " & SystemDefault_Get(6).ToString & " usng the contact page."
Case Else
Return "An unknown error occurred. Please verify your entry and try again. If the problem persists, please contact " & SystemDefault_Get(6).ToString & " usng the contact page."
End Select
End Function
So, create a page that calls a dataset from the DB of your "old" usernames. Then call the abouve function. If it returns "successful", move on to the next. If not, Response.Write the old username and error in creating the account to the page. Print it off and deal with them seperate.
HTH

.....the man in black fled across the desert..........and the gunslinger followed.....