1. Add a website
2. The physical path points to the Web project root directory
3. Add default Document
The following quotes Baidu
Make sure that IIS is installed on the system if it is not installed
Please go to "control Panel" → "Programs" → "programs and features" → "Turn Windows features on or off"
Select all the options under Internet Information Services to determine
steps to read
- 2
Get the published Program files
If it is not published, right-click on the item and select Publish. Note The Publish method Select File system
Steps to read
- 3
Open IIS, right-click on the Web site, select "Add Site"
Steps to read
- 4
In the Add Web Site dialog box, enter the site name, select the physical path and port, other default, and then determine
Physical path, select the folder to store the published file system
Port Select a port other than 80
Note that the port also has a certain range
Steps to read
- 5
Now you can see our new site on the left, click on the application pool above
Steps to read
- 6
Find our new application pool on the right, double-click
Steps to read
- 7
The. NET framework that IIS uses by default is version 2.0, where you select the framework version used by the site
If it was developed by VS2010, select 4.0
If it was developed by VS2008, select 3.5
If it was developed by VS2005, select 3.0
Note that the managed pipeline mode is to select integration. If it is "classic", there may be errors at runtime
Steps to read
- 8
Click New site → click content view → select Start Page → Right click to browse
Steps to read
- 9
OK, the site has been able to access the normal (^o^)/
On other computer browsers, just change localhost to your IP address. Port is still reserved
steps to read END
Baidu Experience: jingyan.baidu.com
Precautions
The Web. config file generally holds the database string, and after deployment, do not forget to modify
Thank you for your attention, hope to be useful to you oh # ^_^ #
IIS Publishing Web Sites