Iis5.0 local test environment 500 internal error cause

Source: Internet
Author: User
Tags metabase

Sometimes you can create a test host environment on a local machine, but you will not be able to access it at will, always prompt "You have no permission to view this page" (PS: it must be that you do not have the permission, rather than the webpage does not exist .) After searching for the password on the Internet, you can find out that the original IIS access password is not synchronized, and find out the cause of the internal error of HTTP 500, which is easy to solve, that is, manually synchronize the password of the IWAM account in the Active Directory, IIS metabase database, and COM + application. In four steps, you must log on to the computer as an administrator to provide sufficient operation permissions (IWAM uses iwam_myserver as an example ).

(1) change the password of the iwam_myserver account in Active Directory

Because the password of the IWAM account is controlled by the system and generated randomly, we don't know what it is. To complete the password synchronization in the following two steps, we must set the password of the IWAM account to a value we know.

1. Choose Start> program> Administrative Tools> Active Directory users and computers to start the Active Directory users and computers Management Unit.

2. Click "user", select "iwam_myserver" on the right, right-click and select "Reset Password (t )... ", in the Reset Password dialog box that appears, set a new password for iwam_myserver. Here we will set it to" aboutnt2001 "(without quotation marks). OK, wait until the password is successfully modified.

(2) synchronize the password of iwam_myserver account in IIS metabase

This change may be too sensitive and important. Microsoft did not provide an explicit user interface for us to modify the iwam_myserver account password in IIS metabase, and only provided a management script adsutil with iis5. vbs. The script is located in the C:/inetpub/adminscripts subdirectory (the location may vary depending on the settings you set when installing iis5 ).

The adsutil. vbs script has powerful functions, many parameters, and complex usage. Here we only provide the method to use this script to modify the iwam_myserver account password:

Adsutil set w3svc/wamuserpass Password

The "password" parameter is the new password of the IWAM account to be set. Therefore, the command to change the password of iwam_myserver in IIS metabase to "aboutnt2001" is:

C:/inetpub/adminscripts> adsutil set w3svc/wamuserpass "aboutnt2001"

After the modification is successful, the system prompts the following:

Wamuserpass: (string) "aboutnt2001"

(3) password of iwam_myserver used to synchronize COM + applications

The iwam_myserver password used to synchronize COM + applications. You can choose either the component service MMC management unit or the IWAM account synchronization script synciwam. vbs.

1. Use the component service MMC Management Unit

(1) Start the Component Service Management Unit: Choose Start> RUN> MMC to start the management console and open the Add/delete Management Unit dialog box, add the Component Service Management Unit.

(2) choose component service> Computer> my computer> COM + application> out-of-process pooled applications ", right-click "out-of-process pooled Applications"-> "properties ".

(3) switch to the "sign" tab in the "out-of-process pooled Applications" attribute dialog box. "This application runs under the following accounts" and "this user" is selected, with the username "iwam_myserver ". These are all default values and do not need to be modified. Enter the correct password "aboutnt2001" in the "password" and "Confirm Password" text boxes below to exit.

(4) If the system prompts "the application is created by more than one external product. Are you sure you want to be supported by these products ?" .

(5) If we set "application protection" for some other web pages in IIS to "high (independent )", the IWAM account and password of the COM + application used by the web must also be synchronized. Repeat Step (1)-(4) To synchronize the IWAM account and password of the corresponding out of Process application.

(4) use the IWAM account synchronization script synciwam. vbs. Then, the passwords of the IWAM account in the Active Directory, IIS metabase database, and COM + application programs have been synchronized successfully, and your ASP program can run again! (Generally, this step is automatically completed after you restart the instance .)

I have used this method in iis5.0 + 2000 Professional/XP/2000server. Share with you!

 

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.