I have re-generated openiddict.pfx and made some adjustments according to the documentation, but the original problem still occurs. I would like to remind you that: a. It was able to run normally in v9.0.4; the problem occurred after upgrading to v9.1.0. b. The error event mentioned occurred during module Volo.Abp.OpenIddict.AbpOpenIddictDomainModule (Volo.Abp.OpenIddict.Domain, Version=9.0.4.0); but I searched the entire project code and could not find any content related to using Volo.Abp.OpenIddict.Domain !
Hi, thanks for the detailed information. The HTTP Error 500.30 and the subsequent System.MissingMethodException clearly indicate an issue with the OpenIddict library after the upgrade from 9.0.4 to 9.1.0.
The error message "Method not found: 'System.Collections.Generic.IAsyncEnumerable`1<System.Object> OpenIddict.Abstractions.IOpenIddictAuthorizationManager.FindAsync(System.String, System.String, System.Threading.CancellationToken)'" suggests that the Volo.Abp.OpenIddict.Domain module (version 9.0.4) is looking for a method in the OpenIddict.Abstractions library that is either no longer present or has a different signature in the version that is now being used (likely the one compatible with ABP 9.1.0).
There might be several reasons for these problems:
Ok I will try to do it on an empty template I couldn’t find the time yet can you give little bit more time and keep this open.
Sure, I'll reopen the question if our support bot closes it automatically. I'll keep the question open.
Hi, after you have configured external providers for the host side:
Then, you can see the "external provider" tab in the settings -> account section for the tenant (you may need to login as the admin user of the related tenant):
As you can see from the figure above, "amazon" is the tenant name and the "admin" is the username of the tenant admin, and it's possible to configure the client-id and client-secret for the related external provider.
Hi, yes you can generate CRUD pages via ABP CLI, please refer to the Generating CRUD Pages via Command Line section in the ABP Suite documentation.
Let me know, if you need further info. Regards.
Hi, EngincanV I can not understand your answers... I will try ask different way. I am using only ABP Suite to make all Entities. I never write any code as all parts are generated automatically, and I can create all needed Entities with properties using ABP Suite only. I am not dealing with Visual Studio as it was not part of my duties :)
As I mentioned I did Step 6 in ABP Suite. I created new Entity with properties. And then I want to run
dotnet ef database updateto have tables in database, but I have no migration file generated. So I can not create tables. So please provide steps I must do after my Step 6.
Hi, sorry for the inconvenience. I will explain in detail:
Right click to the [DemoSln.EntityFrameworkCore] project, then select Ef Core CLI -> Add migration. It will open a dialog as below:
Write a migration name and then click the OK button to create a migration.
dotnet ef database update command in the [DemoSln.EntityFrameworkCore] project or via ABP Studio:I hope I was able to explain it in detail. If there is a step that is unclear, feel free to ask. Regards.
protected override void HandlePropertiesBeforeSave()
{
var entries = ChangeTracker.Entries().ToList();
foreach (var entry in entries)
{
HandleExtraPropertiesOnSave(entry);if (entry.State.IsIn(EntityState.Modified, EntityState.Deleted)) { UpdateConcurrencyStamp(entry); } } foreach (var entry in AbpEfCoreNavigationHelper.GetChangedEntityEntries().Where(x => x.State == EntityState.Unchanged)) { UpdateConcurrencyStamp(entry); } }Hi, as it is override in dbcontext class, can you please confirm if it can impact the performance?
Hi, it should not impact performance. In our current version, this code is already implemented in the AbpDbContext implementation (I mean in v9.0+).
Regards.
Alright, i've sent an email to support for assistance.
Hi, thanks. We have received your email and will review the solution to provide you with an answer.
Regards.
Hi, it seems your problem is the same as https://abp.io/support/questions/8856/Facing-issue-with-deployment-on-appService. So, you can refer to our documentation to see how to configure OpenIddict: https://abp.io/docs/latest/deployment/configuring-openiddict
After you have applied the suggested action, then it should be fixed.
Please let me know, if it still happening. Best regards.
Hi, even though you mentioned that you haven't added custom code for SMTP and are not directly using SmtpClient, the ABP framework itself often uses email for various functionalities like user registration confirmation, password reset, etc.
In debug mode, emails are logged in a txt file (under Logs folders), not sent. On the other hand, in production mode, the SMTP settings are coming from the defined configurations in the SettingManagement page. (Btw, the related module is included in the AdministrationService, where all core ABP Pro modules reside.)
Can you check your SMTP settings are correct in there please? (you can click the test email button to try your config)
Here is the code, that makes the email sender log email content instead of sent it on debug mode (you can see this code in the module class of authserver module):
private void ConfigureEmailSender(ServiceConfigurationContext context)
{
#if DEBUG
context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>());
#endif
}
Hi, this is a known issue that sometimes occurs with company email servers. Here are a few possible reasons:
Can you please check and confirm these two situations is not the case?