Activities of "yorytang"

Is it url config issue ? I find the log 'AllowedRedirectUris' , it is only default url. But I dont konw where to config it.

I have try to change web and api to different site and port, but failed when click login btn.

Thanks, this is https problem, the button click is ok now. but when click login it show 500 error, this is page error and my config below:

  • ABP Framework version: v4.3.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue: I have publish Angular and web api to IIS , this is the Url : http://106.14.14.219:8008/ Web api is tested ok. Webpage can be opened but nothing happens when I click the Login button, no any js error , no any api request.
Answer

thanks

Answer

hi

Those code are unnecessary. the email module will get the configuration automatically.

https://docs.abp.io/en/abp/latest/Emailing

This is test program, You can use it to confirm your email setting is correct.

https://github.com/abpframework/abp-samples/blob/master/EmailSendDemo/src/EmailSendDemo/Program.cs#L11

Do you mean I dont need to config email param manually, just need to add mailkit package and using IMailKitSmtpEmailSender to send mail?

Answer

it uses SettingProvider to get the configuration

See the following links:

  1. https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/EmailSenderConfiguration.cs
  2. https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Settings/Volo/Abp/Settings/SettingProvider.cs
  3. https://docs.abp.io/en/abp/latest/Modules/Setting-Management

I know how to get configuration now, it needs to inject ISettingProvider first,but ApplicationModule.cs dont have the Constructor to inject it.

Answer

Please confirm your email config is correct.

https://github.com/abpframework/abp-samples/blob/master/EmailSendDemo/src/EmailSendDemo/Program.cs#L11

Are these parameters not automatically read from the database,i have config it in setting page,why hardcode it?

Answer

I am a little confused about the mailing function. I think only 2 configurations are needed and no code is required. What else do I need to do?

  1. Config email setting
  2. Delete NullEmailSender code.
Answer

hi

Check your xxxDomainModule. It will use NullEmailSender in DEBUG mode.

#if DEBUG 
    context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>()); 
#endif 

I have delete the code,but sending email error, is it caused by email setting error?

Showing 11 to 20 of 35 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11