Installation of IIS and illustrations of website publishing

Source: Internet
Author: User

In general, IIS is installed before you install the. Net Framework 4.0. If the sequential installation error, the table is worried, there is a solution, patience to look down oh ~

Detailed steps for installing IIS:

By default, IIS is not installed automatically when Windows7 is installed and requires manual installation. Click Start, Control Panel, programs, turn Windows features on or off, select the features you need to install, click OK, install

After a few minutes of installation, open Internet Information Services (IIS) Manager, which has a default Web site, right-click on the management site browsing, in the browser, the following interface shows that IIS installation is successful, the following configuration site.

Configure Web Sites

1. Add Virtual directory: Right click on the default website to add virtual directory, pop up the following window, enter the website alias and select the physical path of the website, click OK.

2. convert the virtual directory for the application, select the virtual directory, right-select the convert to application, pop up the following window, select Application pool, click OK.

3. Application pool configuration: Select the application pool directory, double-click the application pool, pop up the edit window, select the. NET framework version and the managed pipeline mode, as shown in:

Right-click the application pool, select advanced Settings, change the properties in the red box (for the Set up Properties window), tap OK.

4. set the default document: Select the site, select the default document in the main interface, pop up the document window, you can right-click to add the default document (that is, the homepage of your site), and launch the default document, such as.

5. Open the Web site in the browser: After the configuration of the above properties, you can directly select the site right click, click on the management application of the browse,

7.

The browsing effect is as follows: Configuration Center: http://www.ifcts.com

Publishing Web Sites

1. Make sure that IIS is already installed on your computer. In VS Find the item you want to publish, right-click-"Publish Publish method: File system, as shown: ( Note: The target location cannot be the desktop, any other disk can be)

2. Click: Start Menu-Control Panel-management tool-internet Information Service, open Control Panel. Take Win7 as an example, which is the IIS Admin window:

3. Right-click on the "Sites" node on the left and select "Add Site" from the right-click menu

In the pop-up window, add a name, physical path, and port number to the Web site. The port number must not be the same as other published site ports, or the site will not start. For example, the name is Firstapp port 8888.

After adding the successful interface is as follows:

Select launch in the operator panel on the right to launch the website we just posted.

4. enter http://localhost:8888 in the browser to access it.

5. If you want to change or add the project's port number: Click-"bind, such as:

When you click Bind, it appears:

That's how it works.

Publish a Problem collection

1. "Unable to modify configuration file" error when publishing Web site!

WORKAROUND: Detect if the application pool used by the site has started

2. Prompt for "service was not started" error when starting application pool!

Workaround: Start the service in the Services panel

3. "Service file is corrupted" error when starting WSA service

Workaround: In the Run window Input command: fsutil resource setautoreset true C: \

You can start service was after you start it again.

4. Prompt "W3SVC service not Started" error when launching Web site!

Workaround: Start the service in the Services panel, or enter: Net start w3svc in the Run window

If you installed IIS (403 error) after installing the. NET framework4.0, the solution:

The. NET framework4.0 must be re-registered in IIS, as follows:

1. In the Run window, enter: 64-bit operating system: c:\windows\microsoft.net\framework64\v4.0.30319>aspnet_regiis.exe-i

2.32-bit operating system: CD into the specified directory M-"TBL can automatically fill out the specified word, such as: Microsoft c:\windows\microsoft.net\framework\v4.0.30319> Aspnet_regiis.exe-i

3. in the Run window, enter: IISReset (restart IIS)

4. Re- registration Complete

5.CD directory name: Enter a specific directory. If you see a directory displayed as: abcdef ghi

Input: Cdabcdef.ghi into the directory.
Cd\ back to the root directory.
Cd.. Go back to the top level directory.

In this way, it is finished, is not very simple, this is my work in the problems encountered, and now contribute to everyone ~

Installation of IIS and illustrations of website publishing

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.