Issue with .Net TargetingPack installation following a Visual Studio installation

1

After installing Visual Studio 2019 (or 2017, tried with both) via the Visual Studio Installer, I get the message "Couldn't install Microsoft.Net.4.5.2.TargetingPack", seen here. Consulting the error log shows the error code is 1625, which corresponds to: This installation is forbidden by system policy. Contact your system administrator.

The only solution I found for this is to execute Visual Studio Installer as Administrator, naturally though it didn't work!

So I then tried to directly install the .Net Framework 4.5.2 Developer Pack found here: https://dotnet.microsoft.com/download/visual-studio-sdks?utm_source=getdotnetsdk&utm_medium=referral

And this installation fails with a new error message: Installation failed with error code: (0x80092010), "The certificate has been revoked.". I have been on this error for a full day and I haven't found anything so far...

Please help!

c#
.net
visual-studio
installation
asked on Stack Overflow Jun 5, 2020 by devcadg • edited Jun 5, 2020 by devcadg

1 Answer

0

Issue with .Net TargetingPack installation following a Visual Studio installation

First, based on your description that two programs are installed with errors, you should make sure that your current user account has the right to read and write to the current agent.

To confirm this, you need to contact the administrator account.

Besides, if your account has the right to install these programs, you should try these suggestions:

1) delete any caches under temp folder(C:\Users\xxx(user account)\AppData\Local\Temp)

2) turn off any firewall and antivirus software

3) open Control Panel-->Administrative Tools-->Local Security Settings-->Software Restriction Policies

Note: If no software restrictions are defined, right click the Software Restriction Policies node and select New Software Restriction Policy-->Double click Enforcement--> Select All users except Local Administrators

Restart the computer for the changes to take effect and After this, run visual studio installer as administrator to retry the install.

4) or just try to Turn off Windows Installer.

5) if you have any updates on your OS, please try to update them.

answered on Stack Overflow Jun 5, 2020 by Perry Qian-MSFT • edited Jun 20, 2020 by Community

User contributions licensed under CC BY-SA 3.0