Activities of "EngincanV"

it's through 500 error

What's the error detail?

System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. k9sm845219pgr.47 - gsmtp at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.MailCommand.EndSend(IAsyncResult result) at System.Net.Mail.SendMailAsyncResult.SendMailFromCompleted(IAsyncResult result) --- End of stack trace from previous location --- at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result) at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result) --- End of stack trace from previous location --- at Volo.Abp.Emailing.Smtp.SmtpEmailSender.SendEmailAsync(MailMessage mail) at Volo.Abp.Emailing.EmailSenderBase.SendAsync(MailMessage mail, Boolean normalize) at Volo.Abp.Emailing.EmailSenderBase.SendAsync(String to, String subject, String body, Boolean isBodyHtml) at Volo.Abp.Account.Emailing.AccountEmailer.SendEmailConfirmationLinkAsync(IdentityUser user, String confirmationToken, String appName, String returnUrl, String returnUrlHash) at Volo.Abp.Account.AccountAppService.SendEmailConfirmationTokenAsync(IdentityUser user, String applicationName, String returnUrl, String returnUrlHash) at Volo.Abp.Account.AccountAppService.RegisterAsync(RegisterDto input) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) at Volo.Abp.Account.Public.Web.Pages.Account.RegisterModel.RegisterLocalUserAsync() at Volo.Abp.Account.Public.Web.Pages.Account.RegisterModel.OnPostAsync() at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.GenericTaskHandlerMethod.Convert[T](Object taskAsObject) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.GenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync() at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync() at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.

  • This error usually occurs if your credentials are not true, please check the email address and password that you've provided.

  • As I see you want to use the Gmail SMTP server. If you want to use Google's SMTP server settings and send emails via Gmail, you should confirm this first, if you haven't yet.

  • If you are sure about your email address-password and confirmed the related section in Gmail, can you try to set your password by using the SettingManager's SetGlobalAsync method :

public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
     var settingManager = context.ServiceProvider.GetService<SettingManager>();
     //encrypts the password on set and decrypts on get(IStringEncryptionService)
     settingManager.SetGlobalAsync(EmailSettingNames.Smtp.Password, "your_password");
}

https://community.abp.io/articles/replacing-email-templates-and-sending-emails-jkeb8zzh#step---3

Hi @dev1.abp.advantiss, can you try the below code:

public IdentitySecurityLogManager IdentitySecurityLogManager {get;set;}
public AbpSignInManager SignInManager {get; set;}
//or
//public SignInManager<IdentityUser> SignInManager { get; set; }

await IdentitySecurityLogManager.SaveAsync(new IdentitySecurityLogContext()
{
     Identity = IdentitySecurityLogIdentityConsts.Identity,
     Action = IdentitySecurityLogActionConsts.Logout
});

await SignInManager.SignOutAsync();
Answer

In ABP SUITE "Server.Entity.Entity.txt" TEMPLATE

   public %%entity-name%%(%%primary-key%% id, %**%constructor-parameters%%**) 
        { 
            Id = id; 
%%constructor-parameters-with-values%% 
        } 

IF Entity has NavigationProperties and optional parameters, NavigationPropertie's primary key is at the end of parameters then get this error."CS1737: Optional parameters must appear after all required parameters."

Thanks for reporting the issue. This is a known problem and we'll test and fix it asap.

Answer

when adding CmsKit to my solution i get the following error

why is the gulp file missing?

Removed gulp dependency from the MVC / Razor Pages UI in favor of abp install-libs command of the ABP CLI.

https://blog.abp.io/abp/ABP-IO-Platform-5.0-RC-1-Has-Been-Released

I am not able to send mail.

While Using MailKit error:->

MailKit.Security.SslHandshakeException: 'An error occurred while attempting to establish an SSL or TLS connection. The host name did not match the name given in the server's SSL certificate. AuthenticationException: The remote certificate was rejected by the provided RemoteCertificateValidationCallback.

While Using Smtp Error:-> Bad sequence of commands. The server response was: you must authenticate first (#5.5.1) This exception was originally thrown at this call stack: [External Code] EmailSendDemo.AbpEmailingServices.SmtpEmailSender.SendEmailAsync(System.Net.Mail.MailMessage) in SmtpEmailSender.cs [External Code] EmailSendDemo.AbpEmailingServices.EmailSenderBase.SendAsync(System.Net.Mail.MailMessage, bool) in EmailSenderBase.cs [External Code] EmailSendDemo.AbpEmailingServices.EmailSenderBase.SendAsync(string, string, string, string, bool) in EmailSenderBase.cs [External Code] EmailSendDemo.MailTestService.RunAsync() in Program.cs [External Code] EmailSendDemo.Program.Main(string[]) in Program.cs

Hi @kapil, can you set SecureSocketOption as SecureSocketOptions.SslOnConnect:

Configure<AbpMailKitOptions>(options =>
{
    options.SecureSocketOption = SecureSocketOptions.SslOnConnect;
});

SslOnConnect -> The connection should use SSL or TLS encryption immediately. (http://www.mimekit.net/docs/html/T_MailKit_Security_SecureSocketOptions.htm)

Hi again @alex@livemobility.com, thanks for your suggestion. I will update the documentation.

I close the question since it seems your problem is resolved. Thanks again.

Hi again @kaustubh.kale@ness.com, I am sorry I've added the wrong URL.

Can you check this question's answers? I think the suggested steps in this question can answer your question.

Hi @Serdar, you need to override the CurrentTenant class, get the tenant by current tenant id and access the Extra Property dictionary of the tenant.

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(ICurrentTenant), typeof(CurrentTenant), typeof(MyCurrentTenant))]
public class MyCurrentTenant : CurrentTenant
{   
   private readonly ITenantRepository _tenantRepository;
   
   public MyCurrentTenant(ICurrentTenantAccessor currentTenantAccessor, ITenantRepository tenantRepository):base(currentTenantAccessor)
    {
        _tenantRepository = tenantRepository;
    } 
    
   public async Task<Dictionary<string, object>> GetExtraProperties() 
   {
       if(!base.Id.HasValue) 
       {    
           return new Dictionary<string, object>();
       }
       
       var tenant = await _tenantRepository.GetAsync(base.Id);
       //implement your logic
       //tenant.ExtraProperty ...
   }
}

Hi, actually this is not related to ABP but Swashbuckle/Swagger. But I want to give you some instructions to how to do this,

  • You can use the Unchase.Swashbuckle.AspNetCore.Extensions package and follow these steps.
  • If you don't want to use external package, you can create a new SchemaFilter and define it in your configuration. Check this Stackoverflow answer for this.

Hi @zhongfang, thanks for reporting the problem. It should be working now, can you try it again?

Showing 311 to 320 of 456 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13