Windows Server 2019 .NET Framework 4.8 Installation Did Not Succeed - Cannot find object or property

Beaumont, James 21 Reputation points
2022-12-12T14:37:44.967+00:00

The server in question is Windows Server 2019 up on AWS.

The registry shows the proper key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full
version REG_SZ 4.8.03761

However, Visual Studio 2019 on the same machine only allows a target framework of .NET Framework 4.7.2

I've attempted the re-install of 4.8 as well as using the .NET Framework repair tool, no luck.

I guess the ultimate question is how to get Visual Studio 2019 to see the installed target framework?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,451 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,593 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
961 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 27,181 Reputation points Microsoft Vendor
    2022-12-13T02:29:27.423+00:00

    Hi @Beaumont, James ,

    Welcome to Microsoft Q&A forum.

    Please try following suggestions and see if any of them works for you:

    1. Install some update packages for Windows Server 2019(update OS => Settings > Update&Security > Check for updates > Install the updates > you may need to reboot the server).
    2. Try to reboot the server.
    3. You may need to uninstall other installed old .NET Framework and then try to install .NET Framework 4.8 again.
    4. Please open VS Installer > find Visual Studio > Modify > Individual components > search and install .NET Framework 4.8 SDK. Expand the workloads which you installed in the "Installation details" on the right, and check if optional tools like .NET Framework 4.8 development tools… have been installed.
    5. BTW, see if this similar thread: .NET Framework 4.8 on Windows Server 2019 - installation failes helps

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Beaumont, James 21 Reputation points
    2022-12-13T15:43:00.147+00:00

    I checked for updates and the only one was "2022-11 Cumulative Update for .NET Framework 3.5, 4.7.2 and 4.8 for Windows Server 2019 for x64 (KB5020685).

    I downloaded and applied this update and re-started the server.

    I then re-checked Visual Studio 2019 and the target framework for .NET Framework 4.8 was still not showing so I re-ran the Visual Studio Installer...I checked the "Individual components" tab and noted that ".NET Framework 4.8 SDK" was checked, but when looking at "Installation details" on the right hand side, under "ASP.NET and web development", ".NET Framework 4.8 development tools" was not checked, so I checked it and then checked the other workloads to ensure this was also checked when I checked it under "ASP.NET and web development". I then clicked "Modify" and it ran pretty quickly.

    I then re-checked Visual Studio and the properties under my solution and the .NET Framework 4.8 target framework is now appearing.

    Thanks!

    0 comments No comments