Base solution for your next web application
Open Closed

Upgrade from v13.2.0 to v14.0.0 #12407


User avatar
0
mittera created

Hello,

We had a consultant use our ASPNetZero to build our website, we call Merlin. They built it with version 13.2.0. We are now supporting this website and adding a new module. When I attempt to use the ASPNetZero Rad tool it assumes I am using v14.0.0. That version, as I am sure you know, is on .NET9 and our version is on .NET8. So I am trying to figure out how to get our current new module done in the least amount of time. I have spent the week trying, unsuccessfully, to upgrade from v13.2.0 to v14.0.0. My manager asked if there is a way to use the Radtool so it uses the v13.2.0 files?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

28 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @mittera

    What version is specified in the config.json file located under the AspNetZeroRadTool folder in your project? Which version of the Power Tools extension are you currently using?

    Power Tools primarily checks the version in config.json and generates files accordingly using File Templates. Even if you update the AspNetZeroRadTool files in your project to version v14.0.0, the version check will ensure that files are added based on your project’s version.

    Can you provide details on the version specified in the config.json file? Also, are you facing this issue in a specific area, or is it a general problem? There might be an issue you have encountered.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    What version is specified in the config.json file located under the AspNetZeroRadTool folder in your project? Which version of the Power Tools extension are you currently using?

    Power Tools primarily checks the version in config.json and generates files accordingly using File Templates. Even if you update the AspNetZeroRadTool files in your project to version v14.0.0, the version check will ensure that files are added based on your project’s version.

    Can you provide details on the version specified in the config.json file? Also, are you facing this issue in a specific area, or is it a general problem? There might be an issue you have encountered.

    "CompanyName": "Mittera", "ProjectName": "MIS", "ProjectType": "AngularMerged", "ProjectVersion": "v13.2.0", "ApplicationAreaName": "App",~~~~

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @mittera

    Have you made any updates to the files inside the AspNetZeroRadTool folder of your project? Also, could you share the error with us? This will help us provide a more specific response.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    Have you made any updates to the files inside the AspNetZeroRadTool folder of your project? Also, could you share the error with us? This will help us provide a more specific response.

    npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: @craftsjs/[email protected] npm error Found: @angular/[email protected] npm error node_modules/@angular/core npm error @angular/core@"^19.1.7" from the root project npm error peer @angular/core@"^19.1.7" from [email protected] npm error node_modules/abp-ng2-module npm error abp-ng2-module@"^12.1.0" from the root project npm error 17 more (angular-gridster2, angular-oauth2-oidc, ...) npm error npm error Could not resolve dependency: npm error peer @angular/core@">=15.0.0 < 16.0.0" from @craftsjs/[email protected] npm error node_modules/@craftsjs/perfect-scrollbar npm error @craftsjs/perfect-scrollbar@"^5.1.0" from the root project npm error npm error Conflicting peer dependency: @angular/[email protected] npm error node_modules/@angular/core npm error peer @angular/core@">=15.0.0 < 16.0.0" from @craftsjs/[email protected] npm error node_modules/@craftsjs/perfect-scrollbar npm error @craftsjs/perfect-scrollbar@"^5.1.0" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error C:\Users\rob.mroch\AppData\Local\npm-cache_logs\2025-03-21T16_37_29_651Z-eresolve-report.txt npm error A complete log of this run can be found in: C:\Users\rob.mroch\AppData\Local\npm-cache_logs\2025-03-21T16_37_29_651Z-debug-0.log

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Currently getting: C:\Repos\Mittera MIS\src\Mittera.MIS.Web.Host>npm run hmr

    [email protected] hmr gulp buildDev && ng serve --host 0.0.0.0 --port 4200 [11:45:10] Using gulpfile C:\Repos\Mittera MIS\src\Mittera.MIS.Web.Host\gulpfile.mjs [11:45:10] Starting 'buildDev'... Dynamic bundles are being created. [11:45:10] Finished 'buildDev' after 153 ms Error: Schema validation failed with the following errors: Data path "" must NOT have additional properties(main).

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Got past that next error: X [ERROR] TS-996002: This import contains errors, which may affect components that depend on this NgModule. [plugin angular-compiler] src/account/account.module.ts:38:8: 38 │ UtilsModule,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    I am getting closer now I get a bunch of errors from the service-proxies:

    X [ERROR] TS2305: Module '"@shared/service-proxies/service-proxies"' has no exported member 'NameValueOfString'. [plugin angular-compiler] src/app/admin/demo-ui-components/demo-ui-selection.component.ts:4:39: 4 │ ...ComponentsServiceProxy, NameValueOfString } from '@shared/servic... ╵ ~~~~~~~~~~~~~~~~~ X [ERROR] TS2305: Module '"@shared/service-proxies/service-proxies"' has no exported member 'EntityDtoOfString'. [plugin angular-compiler] src/app/admin/maintenance/maintenance.component.ts:6:4: 6 │ EntityDtoOfString, ╵ ~~~~~~~~~~~~~~~~~ X [ERROR] TS2305: Module '"@shared/service-proxies/service-proxies"' has no exported member 'ListResultDtoOfOrganizationUnitDto'. [plugin angular-compiler] src/app/admin/organization-units/organization-tree.component.ts:5:4: 5 │ ListResultDtoOfOrganizationUnitDto, ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ X [ERROR] TS2305: Module '"@shared/service-proxies/service-proxies"' has no exported member 'EntityDtoOfInt64'. [plugin angular-compiler] src/app/admin/tenants/tenants.component.ts:9:4: 9 │ EntityDtoOfInt64, ╵ ~~~~~~~~~~~~~~~~ X [ERROR] TS2305: Module '"@shared/service-proxies/service-proxies"' has no exported member 'EntityDtoOfInt64'. [plugin angular-compiler] src/app/admin/users/edit-user-permissions-modal.component.ts:4:4: 4 │ EntityDtoOfInt64, ╵ ~~~~~~~~~~~~~~~~

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    Have you made any updates to the files inside the AspNetZeroRadTool folder of your project? Also, could you share the error with us? This will help us provide a more specific response.

    Any idea what I should do about this error in service-proxies?

    X [ERROR] TS2305: Module '"@shared/service-proxies/service-proxies"' has no exported member 'NameValueOfString'. [plugin angular-compiler] src/app/admin/demo-ui-components/demo-ui-selection.component.ts:4:39: 4 │ ...ComponentsServiceProxy, NameValueOfString } from '@shared/servic... ╵ ~~~~~~~~~~~~~~~~~ X [ERROR] TS2305: Module '"@shared/service-proxies/service-proxies"' has no exported member 'EntityDtoOfString'. [plugin angular-compiler] src/app/admin/maintenance/maintenance.component.ts:6:4: 6 │ EntityDtoOfString, ╵ ~~~~~~~~~~~~~~~~~ X [ERROR] TS2305: Module '"@shared/service-proxies/service-proxies"' has no exported member 'ListResultDtoOfOrganizationUnitDto'. [plugin angular-compiler] src/app/admin/organization-units/organization-tree.component.ts:5:4:

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @mittera

    You can solve this problem by using "yarn" in the mentioned package mismatch error.

    I see that your Angular project version is 14.1.0. However, the backend version should also be upgraded to 14.1.0. If the Angular version is 14.1.0 while the backend server is on an older version, some incompatibilities may occur. Additionally, when making this change, you will also need to update AspNetZeroRadTool. This is because Angular 14.1.0 introduced the standalone component structure. To generate files properly and ensure compatibility, the latest version of Power Tools should be used.

    For proxy errors, after ensuring that the backend is compatible with the Angular version, you need to run the "npm run nswag" or "yarn nswag" command on the Angular side while the backend is running. This will update the service proxies.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    You can solve this problem by using "yarn" in the mentioned package mismatch error.

    I see that your Angular project version is 14.1.0. However, the backend version should also be upgraded to 14.1.0. If the Angular version is 14.1.0 while the backend server is on an older version, some incompatibilities may occur. Additionally, when making this change, you will also need to update AspNetZeroRadTool. This is because Angular 14.1.0 introduced the standalone component structure. To generate files properly and ensure compatibility, the latest version of Power Tools should be used.

    For proxy errors, after ensuring that the backend is compatible with the Angular version, you need to run the "npm run nswag" or "yarn nswag" command on the Angular side while the backend is running. This will update the service proxies.

    I am not sure what is meant by backend version. Can you clarify?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @mittera

    Your Angular project appears to be version 14.1.0 based on the error code. Have you updated your Host project to the latest version, 14.1.0? You can verify this by checking the package.json file under the Host project. If your projects are on version 14.1.0, you also need to update the version in the config.json file to 14.1.0. This ensures that Power Tools can generate entities for the latest version of the project. When updating config.json, don't forget that you need to update the entire AspNetZeroRadTool as well.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    Your Angular project appears to be version 14.1.0 based on the error code. Have you updated your Host project to the latest version, 14.1.0? You can verify this by checking the package.json file under the Host project. If your projects are on version 14.1.0, you also need to update the version in the config.json file to 14.1.0. This ensures that Power Tools can generate entities for the latest version of the project. When updating config.json, don't forget that you need to update the entire AspNetZeroRadTool as well.

    Here is the version in my package.json: "name": "mittera-inventory", "version": "14.1.0", "license": "MIT", "type": "module", "angular-cli": {},

    I have updated my config.json from 13.2.0 to 14.1.0. Do I need to regenerate all the entities?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    @oguzhanagir

    I regenerated all the entities. Now the first error I get from npm run hmr is:

    X [ERROR] TS2305: Module '"@shared/service-proxies/service-proxies"' has no exported member 'NameValueOfString'. [plugin angular-compiler] src/app/admin/demo-ui-components/demo-ui-selection.component.ts:4:39: 4 │ ...ComponentsServiceProxy, NameValueOfString } from '@shared/servic...

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @mittera

    After performing the regeneration process, did you run the "yarn nswag" command while the Angular project was running? You don't need to regenerate the entities you've created. However, if you encounter an issue, you can regenerate them. If you still experience problems after trying these steps, could you send your project to [email protected]? This will allow me to provide you with a more specific response.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    After performing the regeneration process, did you run the "yarn nswag" command while the Angular project was running? You don't need to regenerate the entities you've created. However, if you encounter an issue, you can regenerate them. If you still experience problems after trying these steps, could you send your project to [email protected]? This will allow me to provide you with a more specific response.

    I just ran the angular project and did "yarn nswag".
    C:\Repos\Mittera MIS\src\Mittera.MIS.Web.Host>yarn nswag yarn run v1.22.22 $ cd nswag/ && refresh.bat C:\Repos\Mittera MIS\src\Mittera.MIS.Web.Host\nswag>"..\node_modules.bin\nswag" run NSwag NPM CLI NSwag command line tool for .NET Core Net90, toolchain v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0)) Visit http://NSwag.org for more information. NSwag bin directory: C:\Repos\Mittera MIS\src\Mittera.MIS.Web.Host\node_modules\nswag\bin\binaries\Net90 Executing file 'C:\Repos\Mittera MIS\src\Mittera.MIS.Web.Host\nswag\service.config.nswag' with variables ''... Done. Duration: 00:00:02.3212402 Done in 3.08s. C:\Repos\Mittera MIS\src\Mittera.MIS.Web.Host>

    Same errors. I will talk to my manager about if it alright to send the project. Thanks!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    After performing the regeneration process, did you run the "yarn nswag" command while the Angular project was running? You don't need to regenerate the entities you've created. However, if you encounter an issue, you can regenerate them. If you still experience problems after trying these steps, could you send your project to [email protected]? This will allow me to provide you with a more specific response.

    What files do you need me to send you ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @mittera

    If possible, please send your AspNet Core and Angular projects. For the Angular project, you may exclude the node_modules and bundles directories. The upgraded version of your project will be required to analyze the issue occurring during the transition and provide you with a specific solution.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    If possible, please send your AspNet Core and Angular projects. For the Angular project, you may exclude the node_modules and bundles directories. The upgraded version of your project will be required to analyze the issue occurring during the transition and provide you with a specific solution.

    I sent the files that our email system would allow due to size. Is there another way I can send you the larger files?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @mittera

    You can send it via file-sharing methods such as Google Drive, WeTransfer, or similar platforms. You can send the download link via e-mail.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    You can send it via file-sharing methods such as Google Drive, WeTransfer, or similar platforms. You can send the download link via e-mail.

    I am working on finding a way that IT will let me send you a link to the file. Just wanted to let you know I am still working on it.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    You can send it via file-sharing methods such as Google Drive, WeTransfer, or similar platforms. You can send the download link via e-mail.

    We sent you a Dropbox link.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @mittera

    I sent you an access request via Dropbox to download the project. Thank you

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    I sent you an access request via Dropbox to download the project. Thank you

    https://www.dropbox.com/t/uEt8DMaKv11eeGko

    I will send the password another method.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @mittera

    I have reviewed the project you provided. In the service-proxies, some class references are missing due to naming conventions. Therefore, the following changes need to be made:

    1. In the UserNotificationHelper file, EntityDtoOfGuid should be replaced with GuidEntityDto.
    2. In friends-lookup-table.component.ts:
      • The PagedResultDtoOfFindUsersOutputDto class should be renamed to FindUsersOutputDtoPagedResultDto.
      • The PagedResultDtoOfNameValueDto class should be updated to NameValueDtoPagedResultDto.

    Additionally, there are build errors caused by missing imports for some standalone components. To resolve these issues, I recommend reviewing the official documentation: 🔗 Angular Standalone Migrations

    If the issue persists after making these changes, please do not hesitate to contact me.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mittera created

    Hi @mittera

    I have reviewed the project you provided. In the service-proxies, some class references are missing due to naming conventions. Therefore, the following changes need to be made:

    1. In the UserNotificationHelper file, EntityDtoOfGuid should be replaced with GuidEntityDto.
    2. In friends-lookup-table.component.ts:
      • The PagedResultDtoOfFindUsersOutputDto class should be renamed to FindUsersOutputDtoPagedResultDto.
      • The PagedResultDtoOfNameValueDto class should be updated to NameValueDtoPagedResultDto.

    Additionally, there are build errors caused by missing imports for some standalone components. To resolve these issues, I recommend reviewing the official documentation: 🔗 Angular Standalone Migrations

    If the issue persists after making these changes, please do not hesitate to contact me.

    Thanks I will give this a try.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)