IIS server configuration FAQ

Source: Internet
Author: User
Tags metabase

Q: Why can't I execute the ASP page after it reaches Windows2003? The execution of aspx is normal.
A: ASP support is not enabled in Windows2003 by default. Find Active Server Pages in Web service extensions of IIS and select allow.

Q: If my IIS File is incorrect, the HTTP Error is displayed, but no error details are displayed. An error occurred while displaying the row of the file, but it is not displayed yet.
A: select "advanced" in Internet Options of IE and select "show friendly HTTP errors.

Q: How to install IIS in Windows XP Home Edition?
A: IIS cannot be installed in Windows XP Home Edition. Upgrade to Professional Edition.

Q: Why do I need to enter the user name and password to access the local address?
A: Open the anonymous account permission in IIS settings. Then, check the NTFS permission of the directory.

Q: When my ASP file contains files, the system prompts that the Active Server Pages error 'asp 0131 'is not allowed for the parent path. How can this problem be solved?
A: Select home directory-configuration-application option in site properties and select "enable parent directory.

Q: Why does my IIS always work?

A: 1. Check the script timeout time you set. It cannot be too long. 2. Check whether your program has objects and the connection is not closed. 3. Stop the services of each user in sequence to see if there are user programs that consume large resources.

**************************************** ***************************************

1. HTTP Error 404-file or directory not found

Http://blog.csdn.net/hhucxyb/article/details/5666813
Allow active servers pages in Web service extensions. By default, IIS only supports static content (HTML) When IIS is installed on any Windows Server 2003 family ).
A virtual directory is created in IIS to direct it to the path where the files are stored. Then, I use the virtual directory to open one under this path. The HTM file, such as http: // localhost/trainonline/index.htm, can be opened, but when I open it. An error occurs in ASP files, such as http: // localhost/trainonline/index. asp. The prompt is:

As shown in Figure 9, the error message is displayed not because the file or directory of the Web site does not exist, but because IIS cannot parse ASP. The web program extension option is added to iis6.0. You can allow and disable operations on ASP, Asp.net, CGI, IDC, and other programs. By default, the "Active Server Pages" extension is disabled, which may cause the preceding IIS error. Solution: Open the IIS manager, click "Web Service extension" on the left, and select "Active Server Pages.

**************************************** ***************************************

2. 500 internal service error
When a client accesses a web site, the system prompts "HTTP 500-internal server error". Such IIS error prompts are not frequent, but troubleshooting is troublesome. The reason is that the IWAM account is not synchronized. the IWAM account is a built-in account automatically created by the system when IIS is installed. After the IWAM account is created, it is used by the Active Directory, IIS metabase database, and COM + applications. The account and password are respectively saved by the three parties, the operating system is responsible for synchronizing the IWAM password stored by the three parties. The system sometimes fails to synchronize the password of the IWAM account, resulting in inconsistent passwords used by the IWAM account.

Solution: If Active Directory is active, choose Start> program> Administrative Tools> Active Directory user and computer to set a password for the IWAM account. Then, open the command prompt (cmd.exe) to enter the c: \ Inetpub \ adminscripts directory and run the command: adsutil set w3svc/wamuserpass test (test is the password, you can set it by yourself ). Then run synciwam. vbs-V under the command line to synchronize the password of the IWAM account in the COM + application.

Another method is to solve my problem in this way.

1. Run: regsvr32 % WINDIR %/system32/VBScript. dll (in fact, this step can also be saved. Make sure to execute it if necessary)
2. Run: MSDTC-resetlog
3. reinstall IIS

Note:
1. Microsoft only provides a management script adsutil. vbs with iis5. this script is located in the C: \ Inetpub \ adminscripts subdirectory. First, register VBScript. dll.
2. msdtc.exe is a distributed transmission Coordination Program of Microsoft. This process calls Microsoft Personal Web server and Microsoft SQL Server. This service is used to manage multiple servers and must be enabled properly.
(1) control panel> Management Tools> component services
(2) choose "component service"> "computer"> "my computer"> "COM + application"> "IIS Out-of-process pooled Applications"
3. if "IIS Out-of-process pooled Applications" is not found, or you cannot open "COM + application" after clicking "MSDTC-resetlog", reinstall IIS.

Http://zhidao.baidu.com/question/101286862.html? Fr = qrl & cid = 88 & Index = 2 & FR2 = Query

3. 403.6 the Client IP address is rejected

The error message is "HTTP Error 403.6-Access prohibited: The Client IP address is denied ".

This is because IIS provides an IP address restriction mechanism. You can configure to restrict some IP addresses from accessing the site, or restrict only some IP addresses from accessing the site, if the client is within the IP address range blocked by you, or is not within the permitted range, an error message is displayed.
Solution: Run "IIS manager" to go to the properties page of the site, on the "Directory Security" tab page, click "edit" under "IP address and domain name restrictions" to go to the "IP address and domain name restrictions" page, and then authorize the IP address as needed.

4. 401.3 access is denied due to ACL settings on requested resources
When a client accesses a web site, an error page is displayed. You do not have the permission to view the directory or page because the access control list (ACL) configures the resource on the Web server. The error message is "HTTP Error 401.3-unauthorized: access to requested resources is denied due to ACL settings ."


This is caused by improper permission settings for web directories. We know that Web client users belong to the user group. Therefore, if you do not grant the users read permission to the NTFS permission in the web directory, the page cannot be accessed.

Solution: Open IIS manager, find the web directory, right-click "properties", and add the Users Group under the "Security" tab, then, Grant "read and run", "list folder directories", and "read" permissions to them.

 

5. 401.1 you do not have the permission to view the directory or page using the provided creden

Error message: HTTP Error 401.1-unauthorized: access is denied because the credential is invalid. "HTTP Error 401.1-unauthorized: access is denied because the credential is invalid.


We know that the client accesses the web site using an IUSR account, which is used for anonymous access. Therefore, if this account is disabled, the user cannot access it.

Solution: "Start> Run" and enter lusrmgr. MSC open the local user and group tool, and double-click IUSR_LW-SERVER in user (LW-SERVER is the name of the server, varies by machine ), deselect "Account Disabled" and click "OK" to exit.

6. The parent path is not allowed.

Error message: "Active Server Pages error 'asp 0131 'parent path not allowed/BBS/admin/bbsface. ASP, line 1 contains the file '.. /Conn. ASP 'unusable '.. 'indicates parent directory"

The error message is displayed because the dynamic web pages such as ASP need to call .. /format statement, that is, it is returned to the previous directory, and iis6.0 is not allowed by default for security reasons. To solve this IIS error, open the IIS manager, find the web directory, right-click "properties", and click "configuration" under the "main directory" tab to open the "Application configuration" window, click the "options" tab and select "enable parent path" under "application configuration.

 

7. Improper Identity Authentication Configuration

When you access a web site, the system prompts that you do not have the permission to use the provided creden to view the directory or page. The error code is "HTTP Error 401.1-unauthorized: access is denied due to invalid creden ".

This IIS fault is caused by identity authentication. IIS supports multiple Web authentication methods, including basic authentication, Windows integrated authentication, digest authentication, and. Net pawwport authentication. These verifications have different security levels that apply to different security requirements. Improper setup may cause errors. Generally anonymous identity authentication is used by most sites.

Solution: Open IIS manager, find the web directory, right-click "properties", and open the site Properties window, under "authentication and Access Control" under the "Directory Security" tab, click "edit" to open the "authentication method" panel, and then select the corresponding authentication method based on security requirements. For normal sites, we can select "enable Anonymous access.

 

8. The attachment is too large to be uploaded

When the file size exceeds kb, it cannot be uploaded. This is because iis6.0 imposes strict restrictions on file upload, which can minimize attacks caused by the previous loose timeout and restrictions. The maximum ASP size configured for database properties is 204,800 bytes, and each field is limited to 100 kb. There are no restrictions in versions earlier than IIS 6.0.

This leads to a file upload failure of more than 200 kb, but in fact the data cannot be submitted more than 200 kb. you can post a long post and try again.

Solution: first, "Start> Run" and enter services. MSC to open the Service Manager and disable the "IIS Admin Service" service. Next, find metabase under windows \ system32 \ inesrv. open the XML file in Notepad. Find aspmaxrequestentityallowed through the "Edit> Search" function in Notepad. The default value is 204800, that is, 200 K, and change it to the expected value, restart the "IIS Admin Service" service.

9. Some types of files cannot be downloaded.

The client cannot download some types of files on the web site. The error message is "HTTP Error 404-file or directory not found ". This error occurs because iis6.0 has canceled support for some MIME types, such as ISO, causing client download errors. (Figure 16)

 

Error message: Unrecognized configuration section "connectionstrings"

Install the. NET Framework 2.0 and select ASP in the properties settings of the virtual directory of the program. Net2.0

If the ASP. net2.0 option still does not appear, register c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_regiis.exe again.-I
Or restart the operating system.

Reference: http://blog.163.com/marsren_2003/blog/static/2174225200742243710448/

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.