Multi tenancy code generation errors

Good day Radzen

Enabling multi-tenancy in a new Blazor WASM project results in the following error in server\Controllers\AccountController.cs:

A local or parameter named 'user' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Adding multi-tenancy to a simple Northwinds test project, gives the following error in client\Pages\AddApplicationRole.razor.designer.cs:

Argument 1: cannot convert from 'Microsoft.AspNetCore.Identity.IdentityRole' to 'RadzenTestWa.Models.ApplicationRole'

Could you please take a look?

Thanks!

Hi @damian_s,

We received report already for this yesterday and we are working to provide fix for our next update tomorrow.

Hi @enchev,

Thank you for the quick response. Sorry for that, I see that report now.

Could you please check the error in client\Pages\AddApplicationRole.razor.designer.cs too? It infers the type incorrectly:

But only when activating multi-tenancy after security has already been set up in an existing application.

Hi @damian_s,

Yes, we will check this as well!

1 Like

Hi @damian_s,

We added new option to security settings - Overwrite existing pages:

You can check it when switching between security with/without multi-tenancy - will be unchecked by default to keep the current behavior to not overwrite already added security pages.

1 Like