Starts in:
2 DAYS
4 HRS
10 MIN
34 SEC
Starts in:
2 D
4 H
10 M
34 S
Open Closed

Upgrade from abp 5 to 7.4 #6346


User avatar
0
Dina created
  • ABP Framework version: v7.4
  • UI Type: MVC
  • Database System: EF Core (SQL Server)

Hi, We are upgrading an abp project from 5 to 7.4 We have done the abp update command and fixed about 2000 errors related to used packages. And now we have some syntax errors related to the identityServer module.

We want a documentation or steps in which we can fix the upgrading errors between these 2 versions directly.

Regards, Dina


20 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Migrating from IdentityServer to OpenIddict Step by Step Guide

    https://docs.abp.io/en/commercial/latest/migration-guides/openIddict-step-by-step

  • User Avatar
    0
    Dina created

    Hi, After the application is built successfully, appeared an error while the run time

    Win32Exception: The certificate chain was issued by an authority that is not trusted.
    Unknown location
    
    SqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
    Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, bool breakConnection, Action<Action> wrapCloseInAction)
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share the full logs.

  • User Avatar
    0
    Dina created

    We have fixed the error by modifying the db connectionstring.

    Now wehave an error "Invalid column name 'EntityVersion'." while running the migrator

  • User Avatar
    0
    Dina created

    and adding new migration creates an empty one

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can delete existing migration files and recreate one.

  • User Avatar
    0
    Dina created

    Hi,

    We were trapped with this issue,

    and when we disabled CMS it was gone. We think this issue is related to this version as mentioned here https://github.com/abpframework/abp/issues/17279 Please we need a solution for it without changing the version.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi, did you override Pages/Public/CmsKit/Pages/Index.cshtml page in the previous version?

    If yes, you'll need to define @page attribute like this: https://github.com/abpframework/abp/blob/35527c1ece6fddcf76eb08eabb1c6bc067abb8d4/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/Public/CmsKit/Pages/Index.cshtml#L1

    But it's even changed again in v8.0 https://github.com/abpframework/abp/blob/rel-8.0/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/Public/CmsKit/Pages/Index.cshtml#L1

  • User Avatar
    0
    Dina created

    Hi, At our solution we have an identity server project added, how can we convert it to OpenIdDict, not IdentityServer?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://docs.abp.io/en/commercial/latest/migration-guides/openIddict-step-by-step

  • User Avatar
    0
    Dina created

    Hi, For the CMS issue, I have overridden the public CMS kit index page but doesn't solve this issue. What should be done?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share your project source code? liming.ma@volosoft.com

  • User Avatar
    0
    Dina created

    Hi, did you override Pages/Public/CmsKit/Pages/Index.cshtml page in the previous version?

    If yes, you'll need to define @page attribute like this: https://github.com/abpframework/abp/blob/35527c1ece6fddcf76eb08eabb1c6bc067abb8d4/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/Public/CmsKit/Pages/Index.cshtml#L1

    But it's even changed again in v8.0 https://github.com/abpframework/abp/blob/rel-8.0/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/Public/CmsKit/Pages/Index.cshtml#L1

    We have an issue with CMS module on our project when upgraded from abp 5 to abp 7.4. issue is related to the routing "Ambiguous Match Exception: The request matched multiple endpoints. Matches: /Public/CmsKit/Pages/Index /Index" I'm trying to override the index page to change its page attribute but the issue isn't fixed. I mention images for overriding the index page, plz check @enisn

    Waiting for your answer.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    It should be @page "/cmskit/page" on v7.4.x

    Can you open it without overriding the Index page?

    By the way can you share reproduction steps from scratch?

  • User Avatar
    0
    Dina created

    It should be @page "/cmskit/page" on v7.4.x

    Can you open it without overriding the Index page?

    By the way can you share reproduction steps from scratch?

    Yes, I already do not need to override. We have a project without customizing any public CMS pages and we just upgraded the Abp version and found this issue.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a project? I will check it locally.

    liming.ma@volosoft.com

  • User Avatar
    0
    Dina created

    Our main issue at CMS kit is routing, we are facing this issue

    "Ambiguous Match Exception: The request matched multiple endpoints. Matches: /Public/CmsKit/Pages/Index /Index"

    @enisn has fixed at version 8 as mentioned here https://github.com/abpframework/abp/pull/17642

    But now we are not using version 8, we use 7.4.2, so how can we fix this issue at the current version? What is the fix or workaround we can do?

    We need to fix this issue please.

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a project? I will check it locally.

    liming.ma@volosoft.com

  • User Avatar
    0
    Dina created

    It is difficult to share the whole project for security wise. What are the classes that you need to check?

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    It is difficult to share the whole project for security wise. What are the classes that you need to check?

    You can create a new empty project and reproduce the problem in it, then you can send the project with reproduction steps to us

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