Open Closed

Cannot solve issues after migrating from net5.0 #7764


User avatar
0
ArneV created
  • ABP Framework version: v8.2.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server)

Migrated solution from net5.0 to net8.0 and cannot get this to work.

Lots of errors of this type:

CS0433 The type 'AccountUrlNames' exists in both 'Volo.Abp.Account.Application, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null' and 'Volo.Abp.Account.Pro.Public.Application, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null' PartnerPortal.HttpApi.Host

Is it possible to schedule a support call on thursday 29th of august?

Kind regards


14 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    CS0433 The type 'AccountUrlNames' exists in both 'Volo.Abp.Account.Application, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null' and 'Volo.Abp.Account.Pro.Public.Application, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null' PartnerPortal.HttpApi.Host

    Please remove Volo.Abp.Account.Application package from your solution

    Volo.Abp.Account is an open-source module, you don't need it, please remove those package

    Volo.Abp.Account.Pro is a pro module for commercial.

  • User Avatar
    0
    ArneV created

    CS0433 The type 'AccountUrlNames' exists in both 'Volo.Abp.Account.Application, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null' and 'Volo.Abp.Account.Pro.Public.Application, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null' PartnerPortal.HttpApi.Host

    Please remove Volo.Abp.Account.Application package from your solution

    Volo.Abp.Account is an open-source module, you don't need it, please remove those package

    Volo.Abp.Account.Pro is a pro module for commercial.

    **Error (active) CS0433 The type 'GetIdentityUsersInput' exists in both 'Volo.Abp.Identity.Application.Contracts, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null' and 'Volo.Abp.Identity.Pro.Application.Contracts, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null' PartnerPortal.HttpApi.Client.ConsoleTestApp **

    -> and I cannot find Volo.Abp.Identity.Application.Contracts in my NuGet Packages


    Error (active) CS1061 'AuthenticationBuilder' does not contain a definition for 'WithDynamicOptions' and no accessible extension method 'WithDynamicOptions' accepting a first argument of type 'AuthenticationBuilder' could be found (are you missing a using directive or an assembly reference?) PartnerPortal.HttpApi.Host

    Code: context.Services.AddAuthentication() .AddGoogle(GoogleDefaults.AuthenticationScheme, _ => { }) .WithDynamicOptions<GoogleOptions, GoogleHandler>( GoogleDefaults.AuthenticationScheme, options => { options.WithProperty(x => x.ClientId); options.WithProperty(x => x.ClientSecret, isSecret: true); } )

    -> WithDynamicOptions does not seem to exist


    Error (active) CS1061 'AbpAccountOptions' does not contain a definition for 'ImpersonationTenantPermission' and no accessible extension method 'ImpersonationTenantPermission' accepting a first argument of type 'AbpAccountOptions' could be found (are you missing a using directive or an assembly reference?) PartnerPortal.HttpApi.Host

    -> None of the options here exist

    private void ConfigureImpersonation(ServiceConfigurationContext context, IConfiguration configuration)
    {
        context.Services.Configure&lt;AbpAccountOptions&gt;(options =>
        {
            options.TenantAdminUserName = "admin";
            options.ImpersonationTenantPermission = SaasHostPermissions.Tenants.Impersonation;
            options.ImpersonationUserPermission = IdentityPermissions.Users.Impersonation;
        });
    }
    
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Please remove all account module packages from your solution. (Volo.Abp.Account.xxxx) then install account pro module to your solution (Volo.Abp.Account.Pro.xxxx)

  • User Avatar
    0
    ArneV created

    I have managed to get my migrated solution running. After some research I found a support question from some time ago which mentioned that the commercial nuget source search is no longer maintained, which made solving my issues quite a bit harder.

    Anyways, I got it working. I am however missing the AbpApiDefinition endpoint, can you elaborate on how to get it (back)?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    After some research I found a support question from some time ago which mentioned that the commercial nuget source search is no longer maintained

    Where have you seen it? It is still under maintenance

    I am however missing the AbpApiDefinition endpoint, can you elaborate on how to get it (back)?

    you can install the Volo.Abp.AspNetCore.Mvc package and

    [DependsOn(
        .....
        typeof(AbpAspNetCoreMvcModule),
        .....
        )]
    public class YourModule : AbpModule
    
  • User Avatar
    0
    ArneV created

    It was on an Abp support question: https://abp.io/support/questions/5182/Nuget-feed-broken#answer-3a0b9d8e-3810-0990-b41d-0c1ba9052a25

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    It was on an Abp support question: https://abp.io/support/questions/5182/Nuget-feed-broken#answer-3a0b9d8e-3810-0990-b41d-0c1ba9052a25

    oh, yes , that's true

  • User Avatar
    0
    ArneV created

    Installing the package and adding the dependency was not enough. Am I missing something else?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Move AbpAspNetCoreMvcModule to HttpApi.Host project.

    then open swagger pgae to check it.

  • User Avatar
    0
    ArneV created

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    it's very strange.

    Is it possible you to share a minimal reproducible project with me? i will check it.

    my email is shiwei.liang@volosoft.com

  • User Avatar
    0
    ArneV created

    Is it possible I am missing appsettings?

  • User Avatar
    0
    ArneV created

    I've found out there is a MyServiceConvention : AbpServiceConvention class

    In this class, there is an override for "ApplyForControllers" where the AbpApiDefinitionController was removed.

    I don't know for what reason that would be. But commenting out that code, i get the definition.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    okay

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11