Overview
IIS is called Internet Information Service, is provided by the Microsoft company based on the Operation MicrosoftWindows Internet Basic Service, Today we will mainly look at how to use the win7 system with the IIS service to publish our development of a simple asp.net web site, to our own development of the site to carry out a simple test.
Steps
1. Open the IIS Service
2. Register IIS in VS
3. Website release
1. Open the IIS service
A. Control Panel-Programs-Programs and functions-turn Windows features on or off
b , open the IIS service, set it as shown in the following figure, and then click OK, and here our IIS service is open (the latency may be a bit long).
2. Register IIS in VS
Start--run input cmd--Enter the command character interface first enter the CD C:\Windows\Microsoft.NET\Framework\v4.0.30319-then enter the Aspnet_regiis.exe-i.
3. website Release
A, add a Web site
Right--management--Service and application--internet Information Services (IIS) Manager--Site right--add site, enter the name of the site in the prompt box, select the physical path, select the IP address.
b, to modify the version of. NET that IIS corresponds to, the default is 2.0, I choose the 4.0 version here, the version chosen here should be consistent with the version registered above.
Application Pool--double click on the site you added--Edit the application pool.
C, add virtual directory
Right-click on the site-add a virtual directory-to fill in.
D, converting to applications
Add a virtual directory to right-click--Convert to Application--Select Files--Browse, you can open the Web page we developed.
Something
It's done by using our system's own IIS to publish our ASP.net website. But if a careful reader uses the steps above to publish a Web site, will find that only the add site A, b two steps without doing C, D, also can achieve our final results, then "Add virtual directory" and "Convert to Application" is not really meaningless it? Adding virtual directories and converting them to applications What's the difference? You can think about it, and I'll explain it in detail in my next blog post.