49 comments

  1. Hi Foxlearn

    I have a question i hope you have a solution for that.

    On my workstation I have developed a WinForm application. With panels, buttons and dropdowns.

    After that I applied the application to my laptop.

    On my laptop the presentation of the application was not correct. The elements overlap and the buttons are warped.

    Can you tell me how to handle this?

    I apologize for my english. This text was written with Google translator.

  2. Hi Friend!!
    Congrats for one more great tutorial.
    I had a problem when I finish Registering the new user. The given error message inside Visual Studio while debugin, says:

    "An exception of type 'System.Net.Mail.SmtpException' occurred in System.dll but was not handled in user code"

    But it is just a general help for exception:

    " em System.Net.Mail.SmtpClient.Send(MailMessage message)
    em FoxLearn_MVC_ASPNET.EmailService.sendMail(IdentityMessage message) na C:Usersi9784947SourceReposFoxLearn_many_projects_FOLDERFoxLearn_MVC_ASPNET_Registration_Form_ResponsiveFoxLearn_MVC_ASPNETApp_StartIdentityConfig.cs:linha 51
    em FoxLearn_MVC_ASPNET.EmailService.<>c__DisplayClass0_0.<SendAsync>b__0() na C:Usersi9784947SourceReposFoxLearn_many_projects_FOLDERFoxLearn_MVC_ASPNET_Registration_Form_ResponsiveFoxLearn_MVC_ASPNETApp_StartIdentityConfig.cs:linha 27
    em System.Threading.Tasks.Task.InnerInvoke()
    em System.Threading.Tasks.Task.Execute()"

    Another error message is given by the browser:

    Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected component did not respond correctly after a period of time or the established connection failed because the connected host did not respond 64.233.190.108:587

    Source Error:

    Linha 49: smtpClient.Credentials = credentials;
    Linha 50: smtpClient.EnableSsl = true;
    Linha 51: smtpClient.Send(msg);
    Linha 52: }
    Linha 53: }

    Source file: C:Usersi9784947SourceReposFoxLearn_many_projects_FOLDERFoxLearn_MVC_ASPNET_Registration_Form_ResponsiveFoxLearn_MVC_ASPNETApp_StartIdentityConfig.cs Linha: 51

    It commit data to database, but not send email for my account email.

    Could you help me please?

  3. Congratulations on the tutorial. I have the following problem: I followed all your steps when I click on the email confirmation link does not send me the confirmation "success" view but that of the error (An error occurred while processing your request.) , he value in the tatble remains false . Tips?

  4. Hi I noticed that you are logged in the ap even before clicking the
    confirmation link. I followed your instructions and got the same result.
    Client shouldn't be logged in before confirmation. How can this be
    avoided?

  5. What this happend :/ ?

    System.Net.Mail.SmtpException: 'El servidor SMTP requiere una conexión segura o el cliente no se autenticó. La respuesta del servidor fue: 5.5.1 Authentication Required. Learn more at'

  6. The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.

  7. Received this error: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Anyone know how to fix this?

  8. If your application turn error The SMTP server … The server response 5.5.1 mean your mail is secured by provider. You have to confirm that you are accept your mail use for not secured app in the provider website. For gmail is allow less secured apps

  9. Hi ! Thank you very much for your tutorials, but please can you make a tutorial on how to use this authentication system on DB First (With entityFramework model for example) ?

  10. Guys everything alright but one thing missing from this video. You need to ENABLE "Allow less secure apps" inside the option "apps with account access" at the "My account" google security/privacy settings (https://myaccount.google.com). So, that your project no more get any error. However, This is great tutorial which just saves my day 🙂

  11. Thanks for the video
    there is a problem in minute 4:02
    the user is already login and emil conformation ask him to login again there is a bug here

  12. ¡Hola! A mi me da este error por favor ayúdenme:
    El servidor SMTP requiere una conexión segura o el cliente no se autenticó. La respuesta del servidor fue: 5.5.1 Authentication Required. Learn more at
    Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.

    Detalles de la excepción: System.Net.Mail.SmtpException: El servidor SMTP requiere una conexión segura o el cliente no se autenticó. La respuesta del servidor fue: 5.5.1 Authentication Required. Learn more at

    Error de código fuente:

    Línea 50: smtpClient.Credentials = credentials;
    Línea 51: smtpClient.EnableSsl = true;
    Línea 52: smtpClient.Send(msg);
    Línea 53: }
    Línea 54: }

  13. Hi, i followed the steps but i have an error.
    System.Net.Mail.SmtpException: 'The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.

    i have used a gmail account and entered my password.
    Does anyone know why I am receiving this error?

  14. Thank you for the tutorial Lucy, looked for hours for a good tutorial but you're the one who helped me the best. Keep it up

  15. I have followed this tutorial but I face that problem please help me
    The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at

Leave a Reply

Your email address will not be published. Required fields are marked *