Hi,
I am using a custom profile provider which works very well when I use the create user wizard, however I would like to know how I can do it in code.
I can create a user using
Membership.CreateUser
and then I use
Roles.AddUsertoRole
to give the new user access rights, This seems to work fine but it does not actually create a user profile.
I have tried profilebase.createprofile ("username")
but that did not seem to work. and when ever I try and access my profile editing page I get an error because it trys to lookup the profile from the database but it does not exist.
I am using the HDIProfileProvider which I found on this site, do I need to add a new function to this to add the profile in.
any help will be appreciated
thanks
James