I use the below template as a temporary solution for a client, who wishes to create all member manually (small closed group).
Anyway. Creating the first member goes well, the notification mail is sent and the member is created in the members section. Then when trying to create the next member the page gives me the yellow screen of death.
The error message I receive (at random it seems).:
The parameter 'username' must not be empty. Parameter name: username
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.ArgumentException: The parameter 'username' must not be empty. Parameter name: username
Source Error:
Line 4: <script runat="server">
Line 5: protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
Line 6: {Roles.AddUserToRole(CreateUserWizard1.UserName, "Medlem");}
Line 7:
Line 8: private bool UserExists(string username)
CreateUserWizard fails at random it seems!
Hi all,
I need some advice here.
I use the below template as a temporary solution for a client, who wishes to create all member manually (small closed group).
Anyway. Creating the first member goes well, the notification mail is sent and the member is created in the members section. Then when trying to create the next member the page gives me the yellow screen of death.
The error message I receive (at random it seems).:
The parameter 'username' must not be empty.
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.Parameter name: username
Exception Details: System.ArgumentException: The parameter 'username' must not be empty.
Parameter name: username
Source Error:
Line 4: <script runat="server"> Line 5: protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e) Line 6: {Roles.AddUserToRole(CreateUserWizard1.UserName, "Medlem");} Line 7: Line 8: private bool UserExists(string username)
This is the template I use for creating members.
I'm still at a loss here. Can't figure out why the first sign up functions and the next one throws an error.
Tried clearing the browser - didn't work.
Please test here and see if you an error also when you create the 2.nd member (No error is thrown when just creating 1):
http://s4a0017.web01.nedergaard-dm.dk/opret-profil.aspx
is working on a reply...