Activities of "alper"

Answer

Create new tenant not creating admin user

  • ABP Framework version: v4.3.0 (Upgraded from 4.2.1)
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: No error is thrown.
  • Steps to reproduce the issue:
  1. Goto SaaS-->Tenants-->New Tenant
  2. Create a new tenant with the admin user and pass entered.
  3. Save

It looks like the tenant is created but the admin user is not added.
In the database the tenant is added but there is no user.
Potentially a problem in ObjectExtensions or TenantAppService?

Chris

I have the same problem here, ABP Framework version:* v4.3.0 from new Template.

at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Volo.Saas.Tenants.TenantStore.GetCacheItemAsync(Nullable`1 id, String name) at Volo.Saas.Tenants.TenantStore.FindAsync(Guid id) <<<---- Error

@arifharsono

the stack trace show that it doesn't find the tenant. did you clean your browser cookies? sometimes old cookies from other databases may break the new project.

30 days to release

I have not tested Suite when project names are changed, because it assumes that ABP project names and directory names will not change. but you can try this; your project structure is saved to %UserProfile%\.abp\suite\appsettings.json. you can edit this file according to your new changes

I created a new project with the latest version and I couldn't reproduce it. if you copy paste the json file from another project, it will not compile because there's a namespace of other project.

I think you disable the validation on the controller but in the controller method also calls the application service method. application service methods are also being validated automatically. so you need to replace the UserAppService and add [DisableValidation] attribute to the UserAppService CreateAsync method.

When you put a breakpoint in CreateAsync method, do you see it comes inside the method? I want to ensure that you successfully overrided the method.


you may also use Fleunt Validation https://docs.abp.io/en/abp/latest/FluentValidation

do you see it in Swagger UI? here's a sample controller

    [RemoteService(Name = "AbpIdentity")]
    [Area("identity")]
    [ControllerName("User")]
    [Route("api/identity/users")]
    public class IdentityUserController : AbpController, IIdentityUserAppService
    {
        [HttpGet]
        [Route("{id}")]
        public virtual Task<IdentityUserDto> GetAsync(Guid id)
        {
            return UserAppService.GetAsync(id);
        }
    }
    

Also see how you can add AbpClaimsPrincipalContributor https://github.com/abpframework/abp/issues/8073#issuecomment-799999030

You can set custom claim values for a user. See https://docs.abp.io/en/commercial/latest/modules/identity#user-claims

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
Showing 941 to 950 of 1973 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on October 21, 2026, 11:09
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.