Activities of "Shanzhi_Chen"

I figured it out by myself. I removed the created projects, and re-create them.

I doubt that caused by Visual Studio Community 2022 for Mac(m1), especially when I created some modules in a sub-solution folder,

some wired situations occurred, the references among projects became mass.

Finally, I created the modules in the 'src' folder and then dragged them to the empty sub-solution folder manually, everything works fine.

The Windows development experience is still better than Mac when I developed .net application.

My single application needs access to multiple Database, I reference the official document to practice it.

The second DbContext works find. However, when I added the third DbContext, the Autofac throw the error shows the repository class can no be resolved.

I can not fix it based on the current debug log. I take me a whole day long.

Could the official teams help me to debug it via Zoom or Teams?

Thanks a lot.

I used ABP commercial 7.1.1 with Visual Studio for Mac 2022 on Mac m1 chip.

I should wait around 15 to 20 seconds for Abp to initialize every time.

Even though I change only a piece of code, I need to relaunch Abp, which takes another 15 to 20 seconds.

I need to waste a lot of time on these boiling things.

Does it support hot-reload on Mac m1 chip or could I disable some features to accelerate the launch progress, or could you give me some suggestions how to improve it?

It works, after set enable ssl to true.

I read the document again, at the bottom of the doc, I found

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

Now, I removed it. But got the server error response.

The server response was: 5.7.3 STARTTLS is required to send mail [MW4PR04CA0068.namprd04.prod.outlook.com 2023-09-13T19:26:35.653Z 08DBB3F5C6583CE3]

I saw the log printed,

USING NullEmailSender

What's the meaning of that? How to figure out?

Question

I followed the official document https://docs.abp.io/zh-Hans/abp/latest/Emailing, I tried to send an email, but I never got any email successfully.

I tried both ways to configure Email settings,

1, Add from Angular UI -> Settings 2, Add 'Settings' json node to appsettings.json with encrypted password .

None of them could send an Email successfully, it was so frustrating.

By the way, there was a very bad experience in which I could not get any exception or log print when I called IEmailSender.SendAsync, just like a black box, nobody knows if the result is failed or successful.

My appsettings.json is below

 "Settings": {
        "Abp.Mailing.Smtp.Host": "smtp.office365.com",
        "Abp.Mailing.Smtp.Port": "587",
        "Abp.Mailing.Smtp.UserName": "no_reply@***.com",
        "Abp.Mailing.Smtp.Password": "***", // encrypted password
        "Abp.Mailing.Smtp.Domain": "smtp.office365.com",
        "Abp.Mailing.Smtp.EnableSsl": "false",
        "Abp.Mailing.Smtp.UseDefaultCredentials": "false",
        "Abp.Mailing.DefaultFromAddress": "no_reply@***.com",
        "Abp.Mailing.DefaultFromDisplayName": "no-reply"
    },

I deploy the ABP commercial application to the IIS as normal. But I tried to access my public webapi, it responded 500.30 error via Chrome, and got an error log record in the 'Logs/logs.txt'

It describes that 'System.Security.Cryptography.CryptographicException: Access is denied.' in the logs.txt.

What is the configuration wrong?

" HTTP Error 500.30 - ASP.NET Core app failed to start Common solutions to this issue: The app failed to start The app started but then stopped The app started but threw an exception during startup Troubleshooting steps: Check the system event log for error messages Enable logging the application process' stdout messages Attach a debugger to the application process and inspect For more guidance on diagnosing and handling these errors, visit Troubleshoot ASP.NET Core on Azure App Service and IIS. "

  • ABP Framework version: v7.1.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server )
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • 2023-09-11 09:49:26.971 -07:00 [INF] Starting MBS.ModernCloud.HttpApi.Host. 2023-09-11 09:49:27.708 -07:00 [FTL] Host terminated unexpectedly! Volo.Abp.AbpInitializationException: An error occurred during ConfigureServicesAsync phase of the module Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule, Volo.Abp.OpenIddict.AspNetCore, Version=7.1.1.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. ---> System.Security.Cryptography.CryptographicException: Access is denied. at System.Security.Cryptography.X509Certificates.StorePal.FromSystemStore(String storeName, StoreLocation storeLocation, OpenFlags openFlags) at System.Security.Cryptography.X509Certificates.X509Store.Open(OpenFlags flags) at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddDevelopmentEncryptionCertificate(X500DistinguishedName subject) at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddDevelopmentEncryptionCertificate() at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.<>c__DisplayClass1_0.<AddOpenIddictServer>b__0(OpenIddictServerBuilder builder) at Microsoft.Extensions.DependencyInjection.OpenIddictServerExtensions.AddServer(OpenIddictBuilder builder, Action1 configuration) at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.AddOpenIddictServer(IServiceCollection services) at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.ConfigureServices(ServiceConfigurationContext context) at Volo.Abp.Modularity.AbpModule.ConfigureServicesAsync(ServiceConfigurationContext context) at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync() --- End of inner exception stack trace --- at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync() at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action1 optionsAction)
  • Steps to reproduce the issue:

Hi,

Which authserver provider are you using? IdentityServer or Openiddict

Openiddict

Could I customize the OIDC webapi output of "connect/userinfo"?

When I call this webapi, It only returns a few user info like below.

{
    "sub": "92af3c6e-0ea8-a0a1-bbeb-3a0a88b4953e",
    "tenantid": null,
    "preferred_username": "admin",
    "family_name": "Casell",
    "given_name": "Ryan",
    "email": "xxx@xxx.com",
    "email_verified": false,
    "phone_number": "5871231234",
    "phone_number_verified": false,
    "role": [
        "admin"
    ]
}

Is it possible to add other customized claims into it? What I want as follow:

{
    "sub": "92af3c6e-0ea8-a0a1-bbeb-3a0a88b4953e",
    "tenantid": null,
    "preferred_username": "admin",
    "family_name": "Casell",
    "given_name": "Ryan",
    "email": "xxx@xxx.com",
    "email_verified": false,
    "phone_number": "5871231234",
    "phone_number_verified": false,
    "role": [
        "admin"
    ]
    

    // Customized User Claims
    "on_hold": true,
    "sales_rep_id": yyc060
    ...
    ...
    ...
}
Showing 1 to 10 of 10 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35