Base solution for your next web application
Open Closed

Upgrade abp from 1.2.1 to 1.4.1 #2434


User avatar
0
rferrari created

Hi,

I downloaded the last template of AbpZero and upgraded the abp packages but I get the following error

Error	CS7036	There is no argument given that corresponds to the required formal parameter 'multiTenancy' of 'ClaimsAbpSession.ClaimsAbpSession(IPrincipalAccessor, IMultiTenancyConfig, ITenantResolver, IAmbientScopeProvider<SessionOverride>)'

Can you advise?

Thanks


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Please see this answer for the solution #2372@5bdda802-b512-4a45-9cf8-eb169eb2f475.

    Thanks.

  • User Avatar
    0
    rferrari created

    Perfect!

    Changed:

    public AspNetZeroAbpSession(IMultiTenancyConfig multiTenancy) 
                : base(multiTenancy)
            {
    
            }
    

    to:

    public AspNetZeroAbpSession(
        IPrincipalAccessor principalAccessor,
        IMultiTenancyConfig multiTenancy,
        ITenantResolver tenantResolver,
        IAmbientScopeProvider<SessionOverride> ambientScopeProvider)
        : base(principalAccessor, multiTenancy, tenantResolver, ambientScopeProvider)
    {
    
    }
    

    and it works!

    Thanks for your prompt reply!