1. Home
  2. Knowledge Base
  3. Getting Started
  4. How to install the .NET Framework 3.x or 4.x on Windows Server 2012, 2016 and later?

How to install the .NET Framework 3.x or 4.x on Windows Server 2012, 2016 and later?

Many windows based application requires .NET Framework installed on the Windows Server 2012 or later. By default on a windows server, .NET Framework doesn’t come as pre-installed, in this case, you need to perform the manual installation of the .NET Framework on your Windows Server 2012, 2016 or later.

In this article we will learn about: How to install the .NET Framework 3.x or 4.x on Windows Server 2012, 2016 and later?


How to install .NET Framework using Server Manager?

1. Log in to your Windows Server 2012, 2016 or later → Open Server Manager.

Open Server Manager

2. Click on  “Add Roles and Features“.

select-add-role-installtion

3. In the Installation Type section, select Role-based or feature-based installation → Next.

select-role-based-installtion

4. In Server Selection, select your Windows Server, if your server is configured in the network, then select the particular server from the list to process the installation → Next.

select-the-machine

5. Do not select or Deselect anything in Server Roles Section → Click Next

6. In the Features section, select the .NET Framework 3.x or 4.x or both → Next.

How to install the .NET Framework 3.x or 4.x on Windows Server 2012, 2016 and later

7. In the Confirmation section, click on Install.

Once you are done with the installation, do not forget to reboot your server, to properly implement the changes.

confirmation-framkework-installation

restart-the-server-once-the-net-framework-is-installed


How to install .NET Framework using Offline Installer?

If you want to install the .NET framework conveniently then an offline installer will do that job for you. You just need to download the Offline Installer from Microsoft Site and process the installation. In this method, you just need an internet connection while downloading the installer file only, afterwords you do not require an internet connection for installation purpose.

You can download any desired .NET Framework version by using the following URL,

https://dotnet.microsoft.com/download/dotnet-framework/

For this article, we will be installing .NET Framework 4.8. You can install any version of the .NET Framework as per your requirement.

1. Visit the above URL: https://dotnet.microsoft.com/download/dotnet-framework/ and select the .NET Framework Version.

select the net framework version from the site

2. Scroll a bit, download the installer from Advanced downloadsRun apps – Runtime.

Run apps – Runtime: The runtime includes everything you need to run existing apps/programs built with .NET Framework.  

download the net framework offline installer from runtime

3. From Download, double click on the installer file,

click on downloaded file offline installer

4. You will see one warning “Do you want to run this file?” then click on RUN.

click-on-run-net-framework-offline-installer

5. Now, windows will extract the files to start the installation.

This will start extracting files

6. Now, check the box “I have read and accept the license terms” → Install.

agree and click on install net framework

7. Next, the installation will begin and it might take some time as per your VPS performance.

installation-started-net-framework-offline-installer

8. Congratulations, the .NET framework has been installed on your server.

How to install .NET Framework using Offline Installer


How to install .NET Framework using Online Installer?

If you want to process the .NET Framework with Online Installer i.e. Web Installer you must have an internet connection while processing the installation. 

You can download any desired .NET Framework version by using the following URL,

https://dotnet.microsoft.com/download/dotnet-framework/

For this article, we will be installing .NET Framework 4.6. You can install any version of the .NET Framework as per your requirement.

1. Visit the above URL: https://dotnet.microsoft.com/download/dotnet-framework/ and select the .NET Framework Version.

select the net framework version from the site

2. You will see one warning “Do you want to run this file?” then click on RUN.

click-on-run-net-framework-offline-installer

5. Now, windows will extract the files to start the installation.

windows-will-start-extracting-files-from-the-installer-for-web-based-net-framework

6. Now, check the box “I have read and accept the license terms” → Install.

agree and click on install net framework

7. Next, windows will download the essential packages/files online and once it is completed; windows starts the installation of the program.

windows will download the files from the server

8. Congratulations, the .NET framework has been installed on your server.

How to install .NET Framework using Offline Installer


Errors & Fix

1. .NET Framework 4 has not been installed because HRESULT 0xc8000222

Resolution:

Open Command Prompt → Type “net stop wuauserv” → Hit Enter.

Now, open RUN (Windows Key + R) → Type “%windir%” → Hit Enter.

Rename “SoftwareDistribution” to SD-kbp

Finally, Open Command Prompt → Type “net start “wuauserv” → Hit Enter.

Now, try to install the .NET Framework.

2. The installation fails with the error 0x800f081f.

Resolution: This type of error encounters when supported files for the installation not found. To install, NET-Framework-Core; you must have ISO of Windows Server 2016 or 2019. Now, mount the ISO file as a virtual drive. (Example E:\)

Now specify an alternative source in the “Confirmation” option. There you need to put “E:\sources\sxs” → OK.

Finally, process with the last steps of the installation.


All the Hyonix Windows VPS comes with Netframework by default

Updated on September 20, 2021

Was this article helpful?

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT