Thanks Harry for your answer.
I tried sfc /scannow, it detected and corrected some errors.
I tried DISM too
then when I tried removing old corrupted .NET 8.0 packages from program files, I got an error, here the log.
I have 2 installed .NET 8.0:
Microsoft.AspNetCore.SharedFramework_x64_en_US.UTF-8,v8.0.22-servicing.25528.8, package: AspNetCoreSharedFramework_x64
Microsoft.AspNetCore.SharedFramework_x64_en_US.UTF-8,v8.0.21-servicing.25475.15, package: AspNetCoreSharedFramework_x64
I got similar errors when I try removing them.
Any suggestion?
[1118:4970][2025-12-18T10:12:43]i001: Burn v3.14.1.9323, Windows v10.0 (Build 26200: Service Pack 0), path: C:\ProgramData\Package Cache\{21069b18-3e50-4d7f-9f3b-8ea81f1abb5b}\AspNetCoreSharedFrameworkBundle-x64.exe
[1118:4970][2025-12-18T10:12:43]i000: Initializing string variable 'BundleNameShort' to value 'Microsoft ASP.NET Core 8.0.22'
[1118:4970][2025-12-18T10:12:43]i000: Initializing string variable 'BundleNameSub' to value 'Shared Framework'
[1118:4970][2025-12-18T10:12:43]i000: Initializing string variable 'BundleNameFull' to value 'Microsoft ASP.NET Core 8.0.22 - Shared Framework (x64)'
[1118:4970][2025-12-18T10:12:43]i009: Command Line: '"-burn.clean.room=C:\ProgramData\Package Cache\{21069b18-3e50-4d7f-9f3b-8ea81f1abb5b}\AspNetCoreSharedFrameworkBundle-x64.exe" -burn.filehandle.attached=628 -burn.filehandle.self=636 /uninstall'
[1118:4970][2025-12-18T10:12:43]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\DOMENI~1\AppData\Local\Temp\dd_dd_AspNetCoreSharedFramework___20251218101243.log'
[1118:4970][2025-12-18T10:12:44]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[1118:06EC][2025-12-18T10:12:44]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[1118:06EC][2025-12-18T10:12:44]i000: Setting version variable 'WixBundleFileVersion' to value '8.0.22.25528'
[1118:4970][2025-12-18T10:12:44]i100: Detect begin, 1 packages
[1118:4970][2025-12-18T10:12:44]i000: Registry key not found. Key = 'SOFTWARE\Microsoft\.NET'
[1118:4970][2025-12-18T10:12:44]i000: Registry key not found. Key = 'SOFTWARE\Microsoft\.NET\8.0'
[1118:4970][2025-12-18T10:12:44]i000: Setting numeric variable 'RemoveSpecificPreviousVersionRegistryKeyExists' to value 0
[1118:4970][2025-12-18T10:12:44]i052: Condition 'RemoveSpecificPreviousVersionRegistryKeyExists=1' evaluates to false.
[1118:4970][2025-12-18T10:12:44]i102: Detected related bundle: {edbd6bbf-3345-4d58-bbc6-7fde92cf5be8}, type: Upgrade, scope: PerMachine, version: 8.0.21.25475, operation: None
[1118:4970][2025-12-18T10:12:44]i101: Detected package: AspNetCoreSharedFramework_x64, state: Present, cached: Complete
[1118:4970][2025-12-18T10:12:44]i000: Setting string variable 'RemoveUpgradeRelatedBundle' to value 'always'
[1118:4970][2025-12-18T10:12:44]i199: Detect complete, result: 0x0
[1118:4970][2025-12-18T10:12:45]i200: Plan begin, 1 packages, action: Uninstall
[1118:4970][2025-12-18T10:12:45]e000: Error 0x00000000: Failed to find related bundle package: {edbd6bbf-3345-4d58-bbc6-7fde92cf5be8}
[1118:4970][2025-12-18T10:12:45]i000: Setting string variable 'WixBundleRollbackLog_AspNetCoreSharedFramework_x64' to value 'C:\Users\DOMENI~1\AppData\Local\Temp\dd_dd_AspNetCoreSharedFramework___20251218101243_000_AspNetCoreSharedFramework_x64_rollback.log'
[1118:4970][2025-12-18T10:12:45]i000: Setting string variable 'WixBundleLog_AspNetCoreSharedFramework_x64' to value 'C:\Users\DOMENI~1\AppData\Local\Temp\dd_dd_AspNetCoreSharedFramework___20251218101243_000_AspNetCoreSharedFramework_x64.log'
[1118:4970][2025-12-18T10:12:45]i207: Planned related bundle: {edbd6bbf-3345-4d58-bbc6-7fde92cf5be8}, type: Upgrade, default requested: None, ba requested: None, execute: None, rollback: None, dependency: None
[1118:4970][2025-12-18T10:12:45]i201: Planned package: AspNetCoreSharedFramework_x64, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1118:4970][2025-12-18T10:12:45]i299: Plan complete, result: 0x0
[1118:4970][2025-12-18T10:12:45]i300: Apply begin
[1118:4970][2025-12-18T10:12:45]i010: Launching elevated engine process.
[1118:4970][2025-12-18T10:12:45]i011: Launched elevated engine process.
[1118:4970][2025-12-18T10:12:45]i012: Connected to elevated engine.
[4B40:4C38][2025-12-18T10:12:45]i358: Pausing automatic updates.
[4B40:4C38][2025-12-18T10:12:45]i359: Paused automatic updates.
[4B40:4C38][2025-12-18T10:12:45]i360: Creating a system restore point.
[4B40:4C38][2025-12-18T10:12:45]i361: Created a system restore point.
[4B40:4C38][2025-12-18T10:12:45]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{21069b18-3e50-4d7f-9f3b-8ea81f1abb5b}, resume: Active, restart initiated: No, disable resume: No
[4B40:4C38][2025-12-18T10:12:45]i326: Removed dependency: {21069b18-3e50-4d7f-9f3b-8ea81f1abb5b} on package provider: Microsoft.AspNetCore.SharedFramework_x64_en_US.UTF-8,v8.0.22-servicing.25528.8, package AspNetCoreSharedFramework_x64
[4B40:4C38][2025-12-18T10:12:45]i301: Applying execute package: AspNetCoreSharedFramework_x64, action: Uninstall, path: (null), arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" DOTNETHOME=""'
[4B40:4C38][2025-12-18T10:12:49]e000: Error 0x80070652: Failed to uninstall MSI package.
[4B40:4C38][2025-12-18T10:12:49]e000: Error 0x80070652: Failed to execute MSI package.
[1118:4970][2025-12-18T10:12:49]e000: Error 0x80070652: Failed to configure per-machine MSI package.
[1118:4970][2025-12-18T10:12:49]w348: Application requested retry of package: AspNetCoreSharedFramework_x64, encountered error: 0x80070652. Retrying...
[4B40:4C38][2025-12-18T10:12:52]i301: Applying execute package: AspNetCoreSharedFramework_x64, action: Uninstall, path: (null), arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" DOTNETHOME=""'
[4B40:4C38][2025-12-18T10:12:55]e000: Error 0x80070652: Failed to uninstall MSI package.
[4B40:4C38][2025-12-18T10:12:55]e000: Error 0x80070652: Failed to execute MSI package.
[1118:4970][2025-12-18T10:12:55]e000: Error 0x80070652: Failed to configure per-machine MSI package.
[1118:4970][2025-12-18T10:12:55]w348: Application requested retry of package: AspNetCoreSharedFramework_x64, encountered error: 0x80070652. Retrying...
[4B40:4C38][2025-12-18T10:12:58]i301: Applying execute package: AspNetCoreSharedFramework_x64, action: Uninstall, path: (null), arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" DOTNETHOME=""'
[4B40:4C38][2025-12-18T10:13:01]e000: Error 0x80070652: Failed to uninstall MSI package.
[4B40:4C38][2025-12-18T10:13:01]e000: Error 0x80070652: Failed to execute MSI package.
[1118:4970][2025-12-18T10:13:01]e000: Error 0x80070652: Failed to configure per-machine MSI package.
[1118:4970][2025-12-18T10:13:01]w348: Application requested retry of package: AspNetCoreSharedFramework_x64, encountered error: 0x80070652. Retrying...
[4B40:4C38][2025-12-18T10:13:04]i301: Applying execute package: AspNetCoreSharedFramework_x64, action: Uninstall, path: (null), arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" DOTNETHOME=""'
[4B40:4C38][2025-12-18T10:13:07]e000: Error 0x80070652: Failed to uninstall MSI package.
[4B40:4C38][2025-12-18T10:13:07]e000: Error 0x80070652: Failed to execute MSI package.
[1118:4970][2025-12-18T10:13:07]e000: Error 0x80070652: Failed to configure per-machine MSI package.
[1118:4970][2025-12-18T10:13:07]i319: Applied execute package: AspNetCoreSharedFramework_x64, result: 0x80070652, restart: None
[1118:4970][2025-12-18T10:13:07]e000: Error 0x80070652: Failed to execute MSI package.
[4B40:4C38][2025-12-18T10:13:07]i318: Skipped rollback of package: AspNetCoreSharedFramework_x64, action: Install, already: Present
[1118:4970][2025-12-18T10:13:07]i319: Applied rollback package: AspNetCoreSharedFramework_x64, result: 0x0, restart: None
[4B40:4C38][2025-12-18T10:13:07]i325: Registering dependency: {21069b18-3e50-4d7f-9f3b-8ea81f1abb5b} on package provider: Microsoft.AspNetCore.SharedFramework_x64_en_US.UTF-8,v8.0.22-servicing.25528.8, package: AspNetCoreSharedFramework_x64
[4B40:4C38][2025-12-18T10:13:07]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{21069b18-3e50-4d7f-9f3b-8ea81f1abb5b}, resume: ARP, restart: None, disable resume: No
[4B40:4C38][2025-12-18T10:13:07]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{21069b18-3e50-4d7f-9f3b-8ea81f1abb5b}, resume: ARP, restart initiated: No, disable resume: No
[1118:4970][2025-12-18T10:13:07]i399: Apply complete, result: 0x80070652, restart: None, ba requested restart: No