.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

CreateUserWizard not showing a duplicate user message

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :ASP.Net
I'm using emails as the user name, and I've got requiresUniqueEmail="true" in the web.config.I have an empty CreatingUser method, and in CreatedUser I perform a couple of table entries with the new user.When I try to add a user with an email that's already in use, I get a the default success message.  But no user is added, andit doesn't reach the CreatedUser method.I must be missing something.  Ideas?

View Complete Post

More Related Resource Links

create user wizard login error message dont show in a message box?




i am using create user wizard and capturing other information within content template when a new user

registers. Some of the textboxes are binded to required field validators.


there is a validation control on the page and ShowMessage box is True.

If they dont complete some of the text boxes then the message box pops Up with the error message.

It does not however include information errors like "User already exists" or Email address already exists

from the create user wizard membership  UserName and Password Textboxes


is it possilbe to hook all of these up so I get one message box with all errors including membership ones?




Showing filtered Records in Crystal Report as per User Requirement


ReportDocument reportDocument = new ReportDocument();
    ParameterField paramField = new ParameterField();
    ParameterFields paramFields = new ParameterFields();
    ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
    protected void Page_Load(object sender, EventArgs e)
        if (!IsPostBack)
            paramField.Name = "@Ext";
            //*Remember to reconstruct the paramDiscreteValue and paramField objects
            paramDiscreteValue.Value = 44854
            CrystalReportViewer1.ParameterFieldInfo = paramFields;

Best architecture for showing mathematical formula based charts to end user

Hi All, We have one new project to implement. Let me explain briefly about this project. This project is related showing chart to end user on the basis of different mathematical calculated formulas. End user has authority to change these formulas on the fly and on the basis of that changed formula we need to show the chart. So this is all central idea about the project. These charts which I mentioned above are very complicated and user friendly             So can any buddy tell me which is best suitable architecture for this and how can fit her to my scenario .I knows, three tier architecture and some other are there but I want know which is the best architectures that developed above idea in right way   Any helps for above is really appreciate  

how to user createuserwizard control

i am using membership provider to create new user.   need help with this

Interesting error message with content organiser: Cannot resolve mailbox (null) to a valid user

Here is a site with content organiser site feature enabled, as well as the email integration feature. Emails are successfully delivered to the "Submitted Email Records" list, but is never routed to the Drop Off Library. (the content organiser web service works fine and the drop off library works as a custom send to destination and happily processes its rules. If I turn up the debug juice I get the error "Cannot resolve mailbox (null) to a valid user" for every item in any "Submitted Email Records" in the site collection. Area: Document managagement Category: Content organiser EventID: 8000 Message: Cannot resolve mailbox (null) to a valid user I have temporarily worked around the problem by email enabling the drop off library but it creates an intermittent race condition (similar to certain workflow and event receiver situations), so its not a real solution (and in fact I assume thats why the Submitted Email Records hidden list exists in the first place). I've run procmon, specifically focusing on OSWTIMER and nothing interesting shows up at all. The error message is intriguing and I can't really think of what it is trying to do. In troubleshooting I noted that this farm had configured inbound email but not outbound email. I have since rectified this and de/reactivated the content organiser features and reset the timer service and IIS, b

SQL - Showing Only One of Duplicate(s)

I've an SQL select statement that I use to display some records within a DataList. Within my database there are duplicate records (not in error, they are supposed to be there), but instead of these duplicates showing in the Datalist for every record; I want just one to be shown.   Records in database:ID     Names1      John           182      Sean          183      Michael       194      John           185      William       21 Required selected:John           18Sean          18Michael       19William       21   Does anyone know who to achieve this?

Web Part not showing up for one user

I have a MOSS 2007 based intranet. On the home page of the site, I have a web part that is just a bulleted list of quick web links to internal and external resources. For instance, I have a bullet item for internal resources, and under that I have links to our we based billing system, the account management system, and the IP security camera. I have another bullet for News, and under that are links to major newspaper and other news websites. For some reason, one of my users sees eevrything esle on the page, except that web part. She has the ability to edit much of the content on that site, so if I have her go into edit mode for the home page, the web part appears. If she subsequently exits edit mode, the web part remains. But if she closes Internet Explorer and re-opens it, the web part is missing again. This is the same, irresepctive of which client machine she is on, whether it is her workstation, laptop, or Terminal Server, and whether it is with Internet Explorer 7 or 8. Any ideas?

CreateUserWizard creating dupicate user while assigning Role.

protected void CreateUserWizard1_CreatedUser(object sender,  EventArgs e){Roles.AddUserToRole((sender as CreateUserWizard).UserName, "Customers");} CreateUserWizard is creating dupicate user while assigning Role.How can we assign Role without duplicating user record? I've observed ApplicationID for assigning Role is Differenent than Creating New User, so when ever Role assigning comes in, it creates  same user again with new UserID. Is it related to Web.Config in some way? As when I try to create user from "VisualStudio/Website/ASP.net Configuration" even then two users with same usernames are entered in aspnet_users with Different ApplicationID and UserID. One user has Role and another duplicate user is without Role status of IsApproved=1.Please help me to resolve this issue.Thanks!  

CreateUserWizard creates 2 user at the same time

Hi there, I couldnt figure this out after 5 hours of pondering and frustration. Why is that CreateUserWizard component always create 2 users having the same UserName in table aspnet_users for each user registration? I just dont understand why? Please, relieve me of my frustration and torment. Thanks in advance.

if logged in user is not active for 20 mins I want a message box to tell them they are logged out ?

 hi, i am using membership on my site If a user is not active then after 2o minutes they click a button an exception is raised and it goes to a red error page which does not look good. Instead I want to re-direct them to login page with a message saying you have been logged out.   thanks for any solutions   P

Prevent duplicate entry into aspnet_profile table through CreateUserWizard?


Is it possible to setup the CreateUserWizard to check for a duplicate entry in the aspnet_profile table (for a custom field) before the new user is created?  For example, if I added a phone number field and wanted to make sure nobody else could create an account using that same phone number if a user already has an account with that phone number in the aspnet_Profile table's PropertyValuesString row? 

The document is locked for editing by another user" error message when you try to open a document in

We recently made checkin/out required for editing documents. So when ever a user uploads a document and when he tries to edit the document on clicking it by the same user. Its says 

The document is locked for editing by another user" error message. 

I don't know why this is happening. If you guys know anything about this message. Please let me know.

error message customization in create user wizard, change password wizard


Hi All,

Create User Wiard and Change Password Wizard contain error message literals. They display error messages when a user is trying to sign up with an username that already exists and so on.

These error messages are pre-set. How can they be customized. In particular, how can they be adjusted depending on the language.

How is this usually best achieved?

Thanks a lot.


Show custom message in CreateUserWizard ErrorMessage control



How can I show a custom error message in CreateUserWizard ErrorMessage Control?

I check some custom rules in CreateUserWizard CreatingUser event and if not passed I want to show an error message in CreateUserWizard ErrorMessage control. I tried to set Text property of ErrorMessage control and set the Visible property to true but didn't work. I use template in CreateUserWizard.

Thank you,

Display confirm message using javascript after user successful logs in



I need to display a javascript confirm box after the user successfully logs into the application. If the select 'yes'  of the confirm box then I need to navigate them to a different page and if they select 'no' the default.aspx page should be displayed. I am using the login control.

I tried to use ClientScript. RegisterClientScriptBlock on Login1_Authenticate event, it didn't work. I tried the same thing on the Page_Load event of Default.aspx as well as Master Page load event, that also didnt work.

How can this be accomplished? Need a quick resolution.



go back to Create User Step on CreateUserWizard control



I'm using a CreateUserWizard do add users to a web app. Everything is working great, but on thing... the Complete Step :-/

I don't need that extra step, and more, i'm using this control as an option where the administrator of the application adds his trusted users to the site. So, its part of a web form that has a list of users on one side and the CreateUserWizard on the other.

What i tried to do, and was unsuccessful, was to change the ActiveStepIndex back to 0 then the user creation was completed, but this didn't work. The Complete Step still appears. Also, i added this to the continue button event and it did nothing either: CreateUserWizard1.ActiveStepIndex = 0;

Is there any way i can "hide" this step? If not, is there a way to go back to the Create User Step when i click the Continue button in the Complete Step?


CreateUserWizard not showing any errors


I thought I had this working, but right now I'm confused.  When I try to cause an error by re-using an email, it gives me the success message, even though nothing is added.

This is my CreateUserWizard

           <asp:CreateUserWizard ID="CreateUserWizard1" OnCreatedUser="CreateUserWizard1_CreatedUser"
                MailDefinition-IsBodyHtml="True" MailDefinition-Subject="New Account Created" 
                CreateUserButtonText="Register" runat="server" LoginCreatedUser="False" OnCreatingUser="CreateUserWizard1
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend