Activities of "EngincanV"

Hi again @nhath, I've shared the solution with you via email, you can check your email. But I also want to share it here to help developers who can face the same problem.

  • If you define a toolbar content for "New User" or "New Role" buttons, you need to specify the toolbar wrapper id as AbpContentToolbar.

So instead of defining like below,

<div id="my-toolbar-content" class="text-lg-right">
    @await RenderSectionAsync("my-toolbar-content", false)
</div>

you should define like follows:

<div id="AbpContentToolbar" class="text-lg-right">
    @await RenderSectionAsync("my-toolbar-content", false)
</div>

I close the question since your problem should be fixed, but if it still persists please don't hesitate to re-open the question. Best Regards.

Can you send the project to engin.veske@volosoft.com?

I sent my project to your email. Please check

Thanks @nhath, I will check and share a solution with you asap.

Can you send the project to engin.veske@volosoft.com?

I tried to remove all my custom but it still doesn't work.

Hi @nhath, as I understand you've customized the CreateModal for Users and Roles pages. Please check does your models' forms' have asp-page="/Identity/Users/CreateModal" attribute for Users page and also for roles page (asp-page="/Identity/Roles/CreateModal").

https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Users/CreateModal.cshtml

And if you also changed the Index.js file of those pages, check do you open the models when you clicked the related buttons. (https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/index.js#L140)

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();
Showing 571 to 580 of 724 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11