Error creating members programmatically in 4.5.2 with .NET 4.0
I am trying to progammatically create members using an asp:CreateUserWizard. Eventually I would like to use a user control for creating members, but for now I have the CreateUserWizard in a template. The code is below:
This code is tested and works as expected when using umbraco 4.5.2 with .NET 3.5. However when I use the same code with .NET 4.0, I recieve an YSOD "Duplicate User name! A member with the user name xxxxxxx already exists" regardless of what user name I enter.
As far as I can tell, the only difference between the site where this code works and the site where it doesn't work is that one is .NET 3.5 and the other is .NET 4.0.
Has anyone had any luck programmatically creating members in Umbraco with .NET 4.0?
Thank you Jonas. You were exactly right. Once I deleted the meber with the blank login name from the database, I was able to get past this error and continue troubleshooting my programmatic membership creation.
Error creating members programmatically in 4.5.2 with .NET 4.0
I am trying to progammatically create members using an asp:CreateUserWizard. Eventually I would like to use a user control for creating members, but for now I have the CreateUserWizard in a template. The code is below:
This code is tested and works as expected when using umbraco 4.5.2 with .NET 3.5. However when I use the same code with .NET 4.0, I recieve an YSOD "Duplicate User name! A member with the user name xxxxxxx already exists" regardless of what user name I enter.
As far as I can tell, the only difference between the site where this code works and the site where it doesn't work is that one is .NET 3.5 and the other is .NET 4.0.
Has anyone had any luck programmatically creating members in Umbraco with .NET 4.0?
Thanks in advance!
--Mike
Hi, can it be you have an erroneous member with blank name in the db? I believe I saw that error msg in such a case.
Regards
Jonas
Thank you Jonas. You were exactly right. Once I deleted the meber with the blank login name from the database, I was able to get past this error and continue troubleshooting my programmatic membership creation.
Thanks again for the quick response!
--Mike
is working on a reply...