Share via

After installing windows update KB5031224, KB5031356, .Net Framework error pops up ask to intall .Net Framework v4.0.30319

Xu Tony 5 Reputation points
2023-10-17T01:58:20.0933333+00:00

2023-10-17 09_52_02-Settings

Some apps have this error and asks to install .NET Freamwork

2023-10-17 09_52_22-Settings

We tried these, but all was failed.

  1. Uninstall all updates
  2. install NET Framework 4 (Standalone Installer) / .net framework offline installer
  3. sfc /scannow
  4. for %1 in (%systemroot%system32*.dll) do regsvr32 /s %1
  5. add register enable .Net use OS configuration tls
  6. reinstall the affected app
Developer technologies | .NET | .NET Runtime
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | .NET | Other
0 comments No comments

4 answers

Sort by: Most helpful
  1. Sternputzer 50-4765 0 Reputation points
    2023-10-23T12:41:04.8+00:00

    Growing frustrated with the scarce information on this unspecific error message, I decided to attempt the registry import from a machine with similar updates and .Net Framework versions as the troublemaking machine:

    Open the registry editor Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\ export the registry node on the working machine (as a backup) and troublemaking machine. Delete the node on the trouble making machine (not all entries could be deleted) and import (File > Import) the keys form the functioning machine. Restart Notes:

    I did not bother to compare the sets of registry entries but after the replacement. Despite my old collection of entries at was much larger, e.g. containing keys related to Microsoft Visual Studio, so far no issues.

    Far from an expert, upon comparing my old and new entries using WinMerge it became apparent that especially the following keys related to version v4.0.30319 were missing: netfx-sku-entries.reg.txt

    Maybe a simplistic guess which ought to be verified, but since SKU is a ‹string value that specifies the stock-keeping unit (SKU), which in turn specifies which .NET Framework release this application supports› the absence of those entries could have caused the error.

    Good luck with your issue and let's hope Microsoft addresses this issue soon in a more professional way ;)

    0 comments No comments

  2. Xu Tony 5 Reputation points
    2023-10-18T00:50:31.0233333+00:00

    Here is the workaround for me:

    1.export the all .NET framework register key from a good pc (the same OS), and import them into the error PC.

    pls do not ask me which key caused this error....

    1. Reset pc

  3. S.Sengupta 30,261 Reputation points MVP Volunteer Moderator
    2023-10-18T00:01:52.85+00:00

    Download and install .NET Framework Repair Tool.

    This tool detects and tries to fix some frequently occurring issues with the setup of Microsoft .NET Framework or with updates to the Microsoft .NET Framework.

    Run Command Prompt as Administrator.

    In the Command Prompt window, type the following command: 
    Dism /online /cleanup-image /RestoreHealth

    0 comments No comments

  4. Jiachen Li-MSFT 34,241 Reputation points Microsoft External Staff
    2023-10-17T08:15:54.3133333+00:00

    Hi @Xu Tony ,

    Since the problem caused by windows update, it is recommended that reporting the issue through the Feedback Hub app.
    https://support.microsoft.com/en-us/windows/sen...

    Also check if the following steps help.

    https://answers.microsoft.com/en-us/windows/forum/all/this-application-could-not-be-started-error-when/eda8e219-d686-4940-90f1-e79377043768


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.