Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ASP.NET Zero Upgrade from 6.2.0 to 13.1.1 #11996


User avatar
0
razkhan78 created

We have a existing project in Asp.net Core MVC + Jquery with framework .net2.1 and version 6.2.1. We are going to upgrade in .net 8 and version 13.1.1.

I have downloaded the latest version 13.1.1 and .net 8 project with same name.

As mention in documentation "Switch to aspnetzero branch in your source control and copy new AspNet Zero version into this branch". What does it mean to copy new AspNet Zero version into your branch?. Which files, and folder needs to copy ? Can you please describe in detail?


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

    Hi @razkhan78

    It means copying all files of the newly downloaded project onto your existing project. But note that, this operaiton must be done in a different branch so you will not lost your existing code.

  • User Avatar
    0
    razkhan78 created

    Hi @ismcagdas

    Thank you for your reply. Do you mean copy all project files by Folder in file explorer of the newly downloaded project (Latest version 13.1.1) onto my existing project (version 6.2.1) OR by Merging two (newly downloaded project & existing project) branches ?

    Second thing is that what does it mean in documentation "Both approaches explained above doesn't delete the files which are renamed or deleted in the original AspNet Zero repository".

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Yes, first you need to copy all files and then you need to merge this branch into your main branch.

    It means that, if we delete a rename a file during the development and if you copy new file into your project, the renamed or deleted file will remain in your source code.

  • User Avatar
    0
    razkhan78 created

    alright got it.

    As you know, we are upgrading from 6.2.0 to 13.1.1. What you suggest, can we continue with v13.1.1 or should continue with 13.2.0? What is the expected release date of 13.2.0? I read in one comment 13.2.0 will be release on Tuesday 05/14/2024. Can you please confirm?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    13.2 is released yesterday. Instead of v13.1.1, I suggest upgrading to 13.2 because the upgrade process is same and there are no breaking changes between 13.1.1 and 13.2.

  • User Avatar
    0
    razkhan78 created

    Hi @ismcagdas,

    As we are upgrading to latest version from 6.2.0 to 13.1.1 following documentation. I have read in one of your comment "We don't support IdentityServer4 anymore. In v12.3 we will integrate and support OpenIdDict".

    I have seen in latest version you have removed IdentityServer4 and using OpenIdDict but we still want to use IdentityServer4. Need your assistance on this. What we have to do to use IdentityServer4 instead of OpenIdDict?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @razkhan78

    IdentityServer4 is removed and when you upgrade your solution to latest version, you will still have IdentityServer4 related code in your project because suggested upgrade method doesn't remove deleted items from your project.

    You can keep IdentityServer4 related code and just delete OpenIdDict related code when your upgrade progress is completed.

    But, just note that IdentityServer4 itself doesn't have an official support anymore, see the warning message on https://identityserver4.readthedocs.io/en/latest/

  • User Avatar
    0
    razkhan78 created

    Hi @ismcagdas

    We have tried with IdentityServer4 by installing latest version of IdentityServer4 and commented all OpenIdDict related code. The problem is upon login keeps redirecting back to login page and doesn't go to next page (HomeController -> Index page). Tried with clear caches, cookies etc. but no success. Receiving suscceed response from SignInManager but keeps redirecting back to login page.

    Installing Packages:

    LoadStop.Core Project: Abp.ZeroCore.IdentityServer4.EntityFrameworkCore Version="9.2.2"

    LoadStop.Web.Core Project: Abp.ZeroCore.IdentityServer4 Version="8.4.0" IdentityServer4.AccessTokenValidation Version="3.0.1"

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Are there any error logs in the log file ?

  • User Avatar
    0
    razkhan78 created

    Hi

    I checked the logs but no error found. I think the problem is with Authorization. When I remove [AbpMvcAuthorize] from controller it goes to HomeController.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Could you share the log file with [email protected] ?