I assume that you did not register the installation of .NET 4.0 correctly . you need to run in cmd with the following parameters "C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i"
Installation steps for this command
1. Now you need to run the command line by typing cmd in the "Run" command, and then run the command line with administrator privileges, right-click and select "Run as administrator" in the context menu.
2. Then, on the command line, you need to go to the directory where the aspnet_regiis.exe file aspnet_regiis.exe , for which you need to enter the text CD C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ And then you need to enter the following command and press enter to register ASP.Net with IIS. aspnet_regiis -i
source share