cause: After you install the framework v4.0, IIS is enabled, causing the framework to not be fully installed
FIX: start with all programs, accessories, right-click Command prompt, run as administrator, and enter the following command:
%windir%\\microsoft.net\\framework\\v4. 0.30319\\aspnet_regiis.exe-i
If you are prompted with an error "Aspnet_regiis.exe is not a valid WIN32 application", it may be because your aspnet_regiis.exe is damaged.
Go to the c:\windows\microsoft.net\framework\v4.0.30319 directory to see the size of the next Asp.net_regiis.exe (v4.0.30319 is the version number of. NET Frameworkde), If it is 0kb, then copy an overlay in the same directory on the computer where the. NET Framework v4.0.30319 is installed.
If you have Microsoft Visual Studio 2012 installed, you can also repair the. Net Framework by using the following methods.
1. Start and All Programs, Microsoft Visual Studio, Visual Studio Tools, VS2012 x64 compatible tools command prompt
2. Enter the following command successively:
Cd\windows\microsoft.net\framework64\v4.0.30319\setupcache
Enter
Setup.exe/repair/x86/x64/ia64/norestart
Enter
The. Net Framework Repair Boot interface appears, select Repair. After it is repaired, restart IIS.
CMD, enter iisreset on the OK.
Win2008. NET4.0 Deployment Error HTTP Error 500.21-internal workaround for Server error