Activities of "ccernat"

  • ABP Framework version: v7.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • at Microsoft.EntityFrameworkCore.Internal.EntityFinder1.<LoadAsync>d__11.MoveNext() at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository2.<EnsureCollectionLoadedAsync>d__351.MoveNext() at Volo.Abp.Domain.Repositories.RepositoryExtensions.<EnsureCollectionLoadedAsync>d__03.MoveNext() at Volo.Abp.Identity.IdentityUserStore.<AddToRoleAsync>d__40.MoveNext() at Microsoft.AspNetCore.Identity.UserManager1.<AddToRoleAsync>d__105.MoveNext() at Castle.DynamicProxy.AsyncInterceptorBase.<ProceedAsynchronous>d__141.MoveNext() at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.<ProceedAsync>d__7.MoveNext() at Volo.Abp.Uow.UnitOfWorkInterceptor.<InterceptAsync>d__2.MoveNext() at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.<InterceptAsync>d__31.MoveNext() at MHU.Data.MHUEmployeesDataSeedContributor.<CreateValidationOfficerAsync>d__9.MoveNext() in F:\EHV\MHUPortalWASM\MHU\src\MHU.Domain\Data\MHUEmployeesDataSeedContributor.cs:line 76 at MHU.Data.MHUEmployeesDataSeedContributor.<SeedAsync>d__8.MoveNext() in F:\EHV\MHUPortalWASM\MHU\src\MHU.Domain\Data\MHUEmployeesDataSeedContributor.cs:line 48 at Volo.Abp.Data.DataSeeder.<SeedAsync>d__7.MoveNext() at Castle.DynamicProxy.AsyncInterceptorBase.<ProceedAsynchronous>d__13.MoveNext() at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.<ProceedAsync>d__7.MoveNext() at Volo.Abp.Uow.UnitOfWorkInterceptor.<InterceptAsync>d__2.MoveNext() at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.<InterceptAsync>d__2.MoveNext() at MHU.Data.MHUDbMigrationService.<SeedDataAsync>d__11.MoveNext() in F:\EHV\MHUPortalWASM\MHU\src\MHU.Domain\Data\MHUDbMigrationService.cs:line 103 at MHU.Data.MHUDbMigrationService.<MigrateAsync>d__9.MoveNext() in F:\EHV\MHUPortalWASM\MHU\src\MHU.Domain\Data\MHUDbMigrationService.cs:line 53 at MHU.DbMigrator.DbMigratorHostedService.<StartAsync>d__3.MoveNext() in F:\EHV\MHUPortalWASM\MHU\src\MHU.DbMigrator\DbMigratorHostedService.cs:line 34 at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>d__12.MoveNext() at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext() at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext() at MHU.DbMigrator.Program.<Main>d__0.MoveNext() in F:\EHV\MHUPortalWASM\MHU\src\MHU.DbMigrator\Program.cs:line 28
  • Steps to reproduce the issue: Upgrade to 7.0.1 and tried to run DBMigrator to seed some users."

Hello!

I upgraded to 7.0.1 and tried to add seed some users and add them to specific roles.

This is what running DbMigrator does:

Tks for providing any hint.

Hi, ABP support team!

You guys managed to reproduce this?

Can I downgrade the ABP suite version, because is impeding my work.

Tks for any hint!

Catalin

Hi,

Can I do smth until then?

If not, is it possible to have a rough estimation when the new version gonna be released, to know when I should expect to deploy in production?

Tks alot, maliming!

Hi!

Indeed, WS were not enabled. I enabled them, but, unfortunately, still the same behavior. :(

  • ABP Framework version: v7.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue: Upgrade ABP suite from 6.0.2 to 7.0.1"

Hello!

After I upgraded the solution and also ABP suite to 7.0.1, when I open the Crude Page Generator I encountered the error in the description.

Hi

Unfortunately no, I cannot see any failed request.

Anyhow, the website is: delete

I created a test username, please login with:

Username: delete Pass: delete

You will see the behavior. After refreshing the page, menu is displayed, but at first login -- not rendered and gravatar's user menu not working.

Tks a bunch.

Hi!

This is happening, I think, because you have to upload the encryption and signing certificates for OpenIdDict server. On local machine will work with development certificates, but on Azure it won't work anymore.

Generate some certificates by making a new console app:

Upload these certificates to Azure. Follow the documentation. Note the certificate thumbprints, you will need them later.

In YourProjectHttpApiHostModule add:

Also add two new methods for loading the certificates based on what OS is the web service published to:

Now in appsettings.json add:

Be careful to add them to Azure settings to and put as values the previously saved thumbprints.

Should work.

  • ABP Framework version: v7.0
  • UI type: Blazor wasm
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hi!

I have a strange situation in which, after publishing the apps on Azure, after the user logs in with Azure B2C as external identity provider, the menu is not rendering and gravatar image is unclickable.

Only after I do a refresh of the page the menu is rendered and user menu by clicking the gravatar starts working.

On local dev env, no problem, it works.

My menu contributor for the Blazor app looks like this. Does anyone encountered this problem? Am I doing too many checks before adding the menu items? The menu is rendered based on various roles and other things.

private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)
{
bool IsDoctorApproved = false;
bool IsDoctorClinicAdmin = false;
var l = context.GetLocalizer<MHUResource>();
var currentUser = context.ServiceProvider.GetRequiredService<ICurrentUser>();       


if(currentUser != null && currentUser.IsAuthenticated)
{
    context.Menu.AddItem(new ApplicationMenuItem(
                     MHUMenus.Home,
                     l["Menu:Home"],
                     "/",
                     icon: "fas fa-home",
                     order: 1
                 ));
    if (currentUser.IsInRole("Doctor"))
    {
        var doctorAppService = context.ServiceProvider.GetRequiredService<IDoctorsAppService>();
        var clinicAppService = context.ServiceProvider.GetRequiredService<IClinicsAppService>();
        var FilterDoctors = new GetDoctorsInput
        {
            IdentityUserId = currentUser.Id.Value
        };
        var result = await doctorAppService.GetListAsync(FilterDoctors);
        if (result.Items.Any())
        {
            var currentDoctor = result.Items.FirstOrDefault().Doctor;
            IsDoctorApproved = currentDoctor.IsApproved;
            var clinic = await clinicAppService.GetAsync(currentDoctor.ClinicId.Value);
            IsDoctorClinicAdmin = clinic.AdministratorId == currentDoctor.Id;
        }
        if (IsDoctorApproved)
        {
            context.Menu.AddItem(new ApplicationMenuItem(
                          MHUMenus.Home,
                          l["Menu:MySubmissions"],
                          "/doctor-submissions",
                          icon: "fas fa-book-medical",
                          requiredPermissionName: null,
                          order: 2
                        ));
            context.Menu.AddItem(new ApplicationMenuItem(
                          MHUMenus.Home,
                          l["Menu:Payments"],
                          "/payments",
                          icon: "far fa-credit-card",
                          requiredPermissionName: null,
                          order: 5
                        ));
            context.Menu.AddItem(new ApplicationMenuItem(
                          MHUMenus.Home,
                          l["Menu:Patients"],
                          "/doctor-patients",
                          icon: "fas fa-user-injured",
                          requiredPermissionName: null,
                          order: 3
                        ));
            
        }
        if (IsDoctorClinicAdmin)
        {
            context.Menu.AddItem(new ApplicationMenuItem(
                      MHUMenus.Home,
                      l["Menu:MyClinic"],
                      "/myclinic",
                      icon: "fas fa-clinic-medical",
                      requiredPermissionName: null,
                      order: 4
                    ));
        }
    }
    else if (currentUser.IsInRole("Patient"))
    {
        context.Menu.AddItem(new ApplicationMenuItem(
          MHUMenus.Home,
          l["Menu:MySubmissions"],
          "/patient-submissions",
          icon: "fas fa-book-medical",
          requiredPermissionName: null,
          order: 2
        ));
        context.Menu.AddItem(new ApplicationMenuItem(
           MHUMenus.Home,
           l["Menu:MyDocuments"],
           "/mydocuments",
           icon: "fa fa-folder",
           requiredPermissionName: null,
           order: 3
        ));
        context.Menu.AddItem(new ApplicationMenuItem(
           MHUMenus.Home,
           l["Menu:Certificates"],
           "/certificates",
           icon: "fas fa-certificate",
           requiredPermissionName: null,
           order: 4
        ));
    }
    else if(currentUser.IsInRole("MHUVO"))
    {
        context.Menu.Items.Clear();
        context.Menu.AddItem(new ApplicationMenuItem(
           MHUMenus.Home,
           l["Menu:Dashboard"],
           "/vo-dashboard",
           icon: "fas fa-house-medical-circle-check",
           requiredPermissionName: null,
           order: 1
        ));
    }
    else if(currentUser.IsInRole("MHURO"))
    {
        context.Menu.Items.Clear();
        context.Menu.AddItem(new ApplicationMenuItem(
           MHUMenus.Home,
           l["Menu:Dashboard"],
           "/ro-dashboard",
           icon: "fas fa-house-medical-circle-check",
           requiredPermissionName: null,
           order: 1
        ));
    }
    else if (currentUser.IsInRole("MHUDR"))
    {
        context.Menu.Items.Clear();
        context.Menu.AddItem(new ApplicationMenuItem(
           MHUMenus.Home,
           l["Menu:Dashboard"],
           "/mhu-doctor",
           icon: "fas fa-file-medical",
           requiredPermissionName: null,
           order: 1
        ));
    }
}

Hi!

No more error of that kind, but now I have these kind of errors:

And this is repeating for: PermissionGroups and FeatureGroups in Logs of HttpApi.Host

Shared ;) Tks.

Showing 11 to 20 of 44 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 14, 2025, 14:54