Use aspnet_regiis.exe to re-register. NET Framework,aspnetregiis.exe
After you reinstall iis, use aspnet_regiis.exe to register the. NET Framework, as shown below:
C: \ WINDOWS \ Microsoft. NET \ Framework \ v1.1.4322 \ aspnet_regiis.exe-I
If multiple versions of. NET Framework are installed on the machine, the method for registering different versions of. NET Framework is as follows:
Asp.net 2.0
C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.507 \ aspnet_regiis.exe-I
Asp.net 4.0
C: \ WINDOWS \ Microsoft. NET \ Framework \ v4.0.30319 \ aspnet_regiis.exe-I
IIS, re-register
In % SystemRoot % \ Microsoft. NET \ Framework \ version \
Run
Aspnet_regiis-I
Note: It should be. NET Framework 4.0 now. The corresponding path is C: \ Windows \ Microsoft. NET \ Framework \ v4.0.30319. You can open the directory to view the corresponding version path.