Enabling SSL on security

I encountered the following error when SSL was enabled for email registration. There is no way to configure the ports used and it could be reason.

An unhandled exception occurred while processing the request.

SmtpException: Server does not support secure connections.

System.Net.Mail.SmtpConnection+ConnectAndHandshakeAsyncResult.SendEHelloCallback(IAsyncResult result)

  • Stack

  • Query

  • Cookies

  • Headers

  • Routing

  • SmtpException: Server does not support secure connections.

    • System.Net.Mail.SmtpConnection+ConnectAndHandshakeAsyncResult.SendEHelloCallback(IAsyncResult result)

    • System.Net.Mail.SmtpConnection+ConnectAndHandshakeAsyncResult.End(IAsyncResult result)

    • System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)

    • RadzenCrm.AccountController.SendEmail(ApplicationUser user, string code, string callbackUrl, string subject, string text) in AccountController.cs

167. await client.SendMailAsync(mailMessage);
  • RadzenCrm.AccountController.SendConfirmationEmail(UserManager userManager, ApplicationUser user, IUrlHelper url, string scheme) in AccountController.cs

135. await SendEmail(user, code, callbackUrl, "Email confirmed", "Email confirmed");
  • RadzenCrm.AccountController.Register(string userName, string password) in AccountController.cs

87. await SendConfirmationEmail(userManager, user, Url, Request.Scheme);
  • Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)

  • System.Threading.Tasks.ValueTask.get_Result()

  • Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask actionResultValueTask)

  • Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)

  • Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)

  • Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)

  • Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)

  • Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)

  • Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)

  • Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)

  • Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)

  • Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)

  • Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)

  • Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)

  • Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)

  • Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Check this thread for more info on how to specify the port:

Thank you so much! I have another question related to the tutorial here Customize security | Create a Blazor CRM application with Radzen (Blazor)

Can you show the steps to upload the photo image to SQL or within the application itself?

You can use FileInput component in TemplateForm:
https://blazor.radzen.com/fileinput