When I try to add a new tenant I get message:
from log.txt description of this error:
ERROR 2024-03-05 13:50:41,970 [orker] Mvc.ExceptionHandling.AbpExceptionFilter - Setting value for 'Abp.Net.Mail.DefaultFromAddress' is null or empty!
Abp.AbpException: Setting value for 'Abp.Net.Mail.DefaultFromAddress' is null or empty!
at Abp.Net.Mail.EmailSenderConfiguration.GetNotEmptySettingValue(String name)
at Abp.Net.Mail.EmailSenderConfiguration.get_DefaultFromAddress()
at Abp.Net.Mail.EmailSenderBase.NormalizeMail(MailMessage mail)
at Abp.Net.Mail.EmailSenderBase.SendAsync(MailMessage mail, Boolean normalize)
at FlaskOne.Authorization.Users.UserEmailer.ReplaceBodyAndSendAsync(String emailAddress, String subject, StringBuilder emailTemplate, StringBuilder mailMessage) in D:\RW\PROGRAMING\PROJECTS\FLASK_ONE\SaaS\aspnet-core\src\FlaskOne.Core\Authorization\Users\UserEmailer.cs:line 486
at FlaskOne.Authorization.Users.UserEmailer.<>c__DisplayClass12_0.<<SendEmailActivationLinkAsync>b__0>d.MoveNext() in D:\RW\PROGRAMING\PROJECTS\FLASK_ONE\SaaS\aspnet-core\src\FlaskOne.Core\Authorization\Users\UserEmailer.cs:line 127
--- End of stack trace from previous location ---
at Abp.Domain.Uow.UnitOfWorkManagerExtensions.WithUnitOfWorkAsync(IUnitOfWorkManager manager, Func1 action, UnitOfWorkOptions options) at FlaskOne.Authorization.Users.UserEmailer.SendEmailActivationLinkAsync(User user, String link, String plainPassword) in D:\RW\PROGRAMING\PROJECTS\FLASK_ONE\SaaS\aspnet-core\src\FlaskOne.Core\Authorization\Users\UserEmailer.cs:line 80 at FlaskOne.MultiTenancy.TenantManager.CreateWithAdminUserAsync(String tenancyName, String name, String adminPassword, String adminEmailAddress, String connectionString, Boolean isActive, Nullable
1 editionId, Boolean shouldChangePasswordOnNextLogin, Boolean sendActivationEmail, Nullable1 subscriptionEndDate, Boolean isInTrialPeriod, String emailActivationLink, String adminName, String adminSurname) in D:\RW\PROGRAMING\PROJECTS\FLASK_ONE\SaaS\aspnet-core\src\FlaskOne.Core\MultiTenancy\TenantManager.cs:line 179 at FlaskOne.MultiTenancy.TenantRegistrationAppService.RegisterTenant(RegisterTenantInput input) in D:\RW\PROGRAMING\PROJECTS\FLASK_ONE\SaaS\aspnet-core\src\FlaskOne.Application\MultiTenancy\TenantRegistrationAppService.cs:line 101 at lambda_method2828(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask
1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
That's true. I don't want to fill in this data because my company email account uses two stages of authentication: a password and the Microsoft Authenticator application and it doesn't work in this case either. If I use a private email account where I only have the password, creating a new tenant works fine.
I need one of two solutions.
- Switch off this functionality for now,
- be able to use your account with double authentication.
3 Answer(s)
-
0
Hi,
You can disable sending email notification here https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/MultiTenancy/TenantRegistrationAppService.cs#L119C21-L119C40
-
0
-
0
Hi,
Since this is a private repository, you need to add your GitHub user on https://aspnetzero.com/LicenseManagement page under GitHub tab.