Activities of "EngincanV"

Hi, please create a new question. Thanks.

Hi @nhath, do you see any error on the console?

In the end I managed to get it working by moving app.UseAbpRequestLocalization(); to be the first middleware. Honestly, I'm not sure if this ok. Also, the previous call came from the abp commercial startup template.

Hi @alex@livemobility.com, there is not any problem to be the AbpRequestLocalizationMiddleware being the first middleware.

Also as second note, it's confusing right now how a language needs to be added.
I identified the following steps:

  • create a new file under the domain project
  • add the new language in {{my}DomainModule
  • add the new language in {{my}HttpApiHostModule
  • create a record in the database by using the Language UI

Are this the right steps?

  • You can either add new languages via creating a new localization file under the *.Domain.Shared project (/Localization/{your-folder-name}/{language-name}.json, like en.json file) or using the Language Management module.

  • If you want to define new localization language/culture by creating a new localization file under the Localization folder of the *.Domain.Shared project, first you need to create a file under the Localization folder and then you need to define it in your *HttpApiHostModule's ConfigureLanguage method:

private void ConfigureLocalization()
{
     Configure<AbpLocalizationOptions>(options =>
     {
          options.Languages.Add(new LanguageInfo("ar", "ar", "العربية", "ae"));
          options.Languages.Add(new LanguageInfo("cs", "cs", "Čeština"));
          options.Languages.Add(new LanguageInfo("en", "en", "English"));
          options.Languages.Add(new LanguageInfo("fi", "fi", "Finnish", "fi"));
          options.Languages.Add(new LanguageInfo("fr", "fr", "Français", "fr"));
          options.Languages.Add(new LanguageInfo("hi", "hi", "Hindi", "in"));
          options.Languages.Add(new LanguageInfo("it", "it", "Italiano", "it"));
          options.Languages.Add(new LanguageInfo("sl", "sl", "Slovenščina"));
          options.Languages.Add(new LanguageInfo("sk", "sk", "Slovak", "sk"));
          options.Languages.Add(new LanguageInfo("tr", "tr", "Türkçe"));
          options.Languages.Add(new LanguageInfo("zh-Hans", "zh-Hans", "简体中文"));
          options.Languages.Add(new LanguageInfo("zh-Hant", "zh-Hant", "繁體中文"));
          options.Languages.Add(new LanguageInfo("de-DE", "de-DE", "Deutsche", "de"));
          options.Languages.Add(new LanguageInfo("es", "es", "Español", "es"));
          
          // add new localization language that you've define like above
     });
}

  • Then you can use it in your angular UI, follow this documentation to see how you can use it on your angular UI.

  • If you define a new localization language/culture by using the Language Management module (Languages page), and update the texts for that newly created localization language you can directly use it in your Angular UI.
Answer

Hello,

We just added the payment module with abp suite to our project.

Payment Plans page is ok but on open the Payment Requests page we have an js error

on line :
var service = volo.payment.admin.requests.paymentRequestAdmin;

admin is not in volo.payment.

Your help will be appreciated.

Hi @willignicolas@gmail.com, this problem is fixed and will be available in the next release.

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&lt;SettingManager&gt;();
     //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.

Showing 581 to 590 of 730 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11