One look at it-use IIS services to publish a Web site (practice article)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.