Practical basic skills (19) -------- how to install IIS and configure ASP in WIN7 (detailed), win7iis

Source: Internet
Author: User

Practical basic skills (19) -------- how to install IIS and configure ASP in WIN7 (detailed), win7iis
I. Windows 7 System (IIS comes with WIN7, version 7.0 ),First, install IIS. Open the control panel, find "programs and functions", click in,Click "enable or disable Windows" on the left ",Find "Internet Information Service" and follow the check box.

 

After the installation is complete, go back to the control panel, find "Management Tools", click to enter,Double-click "Internet Information Service (IIS) manager" to become IIS. If you need to use IIS frequently, you are advised to move your cursor to "Internet Information Service (IIS) manager" and Right-click and choose "send to" desktop shortcut to access IIS from the desktop, instead of clicking control panel every time.

IIS interface: Select "Default Web Site" and double-click "ASP" in the middle ",Change "enable parent path" to "True"

The following is the configuration site. Click "Advanced Settings" on the right and select the directory of your website.

Return to IIS and click "Bind..." on the right... ", select the website you want to bind, and click" edit ". If it is a computer, you only need to modify the subsequent port number. You can modify the number at will. If it is an office LAN, click the drop-down box and select the lan ip address on your computer, for example, 192. 168. **. **, and then modify the port number.

Return to IIS. If it is stopped on the right, select start and Click Browse website below to open the website in the folder you are bound.

If you have multiple websites, right-click "website" on the left side of IIS and choose "add Website"

Modify the "website name", "physical path", and "Port" in three locations. If the LAN is used, modify the "ip address", as shown in the preceding figure.

After adding the website, click the new website name, which is the details of the website.

Ii. Possible Errors


I am very grateful for the permission issue and debugging of iis configuration 50019 in asp + win7.

Generally, this problem does not occur on IIS6.0. This problem occurs on IIS7.0, And I encountered it last time.
1. You need to grant sufficient permissions to the published folder. You can grant it the Everyone permission.
2. Check whether the web server is installed in IIS7.0. The method is as follows:

Control Panel --> Programs and functions --> enable or disable windows functions --> roles
If "web Server (IIS)" is not installed yet, select "add ".
If it is already installed, select "web Server (IIS)" --> Add role service.
Select "Application Development (installed)" --> "ASP. NET"

Generally, you can try all of the above. You can try it and I have done it for a long time.
 
How can I deploy iis and aspnet website source code in win7?

Win7 IIS configuration and ASP. NET running configuration
Select "program" on the Control Panel to enable or disable the Windows function on the left.

To install IIS7, select the function module to use

Install IIS and open IIS Manager

Click iisstart.html to obtain the following interface. Here, IIS is not complete.
Because now, If you configure the asp.net project, there will be many problems, such as database access permissions.

The following procedure sets the database access permission.

Select localSystem or NetworkService

After IIS7 is installed by default, the ASP program will find a prompt indicating that the database connection failed. I found it online because the MSJet engine changed the location of the temporary directory, however, the database fails to use because it does not have temporary access permissions.
You must set the application pool to Classic. NETAppPool instead of the default DefaultAppPool. You can set each site in the website directory or separately at the site. After selecting the site to be set, click "Basic settings" on the right to bring up the application pool Settings dialog box.

The username and password of the operating system must be used here. Otherwise, you are not authorized to access the hard disk partition.

The second line shows that authorization is performed because the user name and password are given in the preceding step. Otherwise, the asp.net page cannot be accessed.
Then add an "Authenticated Users" user to the Temp directory under "System Disk: Windows \ ServiceProfiles \ NetworkService \ AppData \ Local". The AppData directory is hidden, you can enter a path in the address bar or hide the file in the folder option.
To set permissions, right-click the Temp folder, select Properties, select Security tab, click Edit, and then click Add ", in the following "input object name to select", enter Authenticated Users, OK, and return to "Temp permission". Check whether AuthenticatedUsers has full control over AuthenticatedUsers permissions.

Enable parent path support

Select "ASP" on the site homepage, and set "enable parent path" to "True" in the "behavior" group.
(Here I personally think you can change it or not depending on your own situation (I have never changed it to False ))

So far, the installation of IIS7 in Windows 7 and the configuration of using asp.net have been completed.
I encountered a lot of errors when deploying the asp.net project. I checked a lot of information on the Internet and it took more than two days to figure it out. You need to be patient and search for the online results, basic problems can be solved.

Related Article

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.