In fact, I have completely configured the IIS7 server when doing a large database job, but the configuration was not summarized last time, resulting in a long time to be configured. Therefore, the configuration problems are summarized here.
1. Install IIS7.
Many people use the installation files downloaded from the Internet to install IIS7, but every time I install IIS7 using the options in windows. Open Control Panel> Programs and functions> open or close windows functions, for example:
Select all related options under internet Information Service> Web management tools, and click "OK" to install the tool. After the installation is complete, enter localhost in the browser and the homepage of IIS7 appears.
Ii. Web deployment
Control Panel-> Administrative Tools-> Internet Information Service (IIS) Manager
Select a website and click "add Website". The preceding options are displayed. You can set website related options here.
Here, Web deployment is almost done, but some problems may occur.
1) unrecognized
<Compilation debug = "true"
OptimizeCompilations = "true"
Targetframeworks = "4.0"/>
This is because the application pool is set to another version. As shown in, click application pool, add application pool, and select. NET4.0. Then select the application pool of your Web project as. NET4.0.
2) incomplete Asp. NET4.0
Note: Not that you have not fully installed. NET, but you need to register. NET4.0.
3) the page you requested cannot be provided due to scaling configuration issues. If the page is a script, add a handler.
This is also because some things in the local machine are not installed, this is very simple, it is also to open and close the windows program to select the relevant program to install.