Hi,
I am sorry for confusion. The system really throws exception, but only in case that userName is not unique.
So the solution in this case is to try to find user in a database before he will be inserted, i.e. use following method from
UserInfoProvider. If it returns empty dataset, user with mentioned id does not exist in the system:
public static DataSet GetUsers(
string where,
string orderBy
)
Best regards,
Ivana Tomanickova