This article was reproduced from: http://blog.csdn.net/qizhichao110/article/details/8164116
1. WIN7 Install IIS: Control Panel----programs and features-----turn Windows features on or off,
Expand Internet Information Services, select it as you like, and then click OK to wait a few minutes to install
2. Registering IIS
Because we are installed first VS, after installing IIS, so need to register IIS into VS (for specific reasons can be checked online, or we will later, but I still hope that you find the answer), the specific method is as follows:
Enter "CMD" in the Run, enter the DOS interface
Enter the following command: CD C:\Windows\Microsoft.NET\Framework\v4.0.30319, hit Enter,
The above command means to go to the C:\Windows\Microsoft.NET\Framework\v4.0.30319 directory, and then run the program with the name Aspnet_regiis.exe, as shown in the code
Then flush IIS, restart the IIS command for IISRESET (the command to stop IIS is iisreset/stop, the command to start IIS is Iisreset/start), to register IIS successfully
Note: The reason why the use of aspnet_regiis.exe–i, rather than directly run aspnet_regiis.exe, is because the role of the two different, aspnet_regiis.exe can be followed in addition to I, but also with other parameters, The following commands can be used to see which parameters are followed by Asp.net_regiis.exe
Win7 Installing IIS and publishing the Web site to IIS