IIS 500 internal error Solution

Source: Internet
Author: User
Tags metabase
Author: blackleaf Source: Black coastline updated on:

IIS 500 internal error Solution

Error message:
There will always be three manifestations when this error occurs: first, the most direct and incomprehensible performance in IE; second, the performance in security logs, IWAM_Machine Account Logon failure; the third is the performance in system logs. the IIS Out-Of-Process Pooled Applications cannot be started due to startup account errors. this leads to an ASP page browsing error.

(1) Performance in IE

The following error occurs when you browse asp pages that previously run normally:

(1)
Webpage cannot be displayed
The webpage you want to access has problems, so it cannot be displayed.

---------------------------------------------

Please try the following operations:

Go to the http: // 127.0.0.1 homepage and find a link to the desired information.
Click Refresh or try again later.

HTTP 500-Internal Server Error
Internet Information Service

--------------------------------------------------------------------------------

Technical Information (Personal Support)

Details:
Microsoft support

[Note: this is only 500 error, not 500. xx and other errors. These errors are mainly asp programming problems, which have little to do with iis. Only 500 errors are caused by iis.]

(2)
Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for maintenance.

Performance in the Registry
Tip: The IWAM_user in the sam file does not exist.

 

The network solution is as follows:
Knowing the cause of an internal http 500 error, it is easy to solve the problem, that is, manually synchronize the iwam account in active directory, iis
Password in metabase database and com + application.
You must log on to the computer as an administrator in three steps 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. Select Start> program> Administrative Tools> active directory users and computers to start active directory
Directory user and Computer 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
Probably because this change is too sensitive and important, Microsoft has not modified iis for us.
In metabase, iwam_myserver provides an explicit user interface with only one management script adsutil provided by 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, we set iis
In metabase, the command for changing the password of iwam_myserver 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 "out-of-process pooled"
The flags tab in the applications Properties 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 other corresponding out
Of process application iwam account password.

2. Use the iwam account synchronization script synciwam. vbs
In fact, Microsoft has discovered that the iwam account has problems in password synchronization. Therefore, in the iis5 management script, a script synciwam is written separately for the iwam account and password synchronization. vbs. The script is located in the c: \ inetpub \ adminscripts subdirectory (the location may vary depending on the settings you set when installing iis5 ).

Synciwam. vbs script is easy to use:
Cscript synciwam. vbs [-v |-h]
The "-v" parameter indicates that the entire script execution process is displayed in detail (recommended), and the "-h" parameter is used to display simple help information.

To synchronize the password of the iwam_myserver account in the com + application, Run "cscript synciwam. vbs
-V ", as shown below:
Cscript c: \ inetpub \ adminscripts \ synciwam. vbs-v
Microsoft (r) windows script host version 5.6
Copyright (c) microsoft corporation 1996-2000. All rights reserved.

Wamusername: iwam_myserver
Wamuserpass: aboutnt2001
Iis applications defined:
Name, appisolated, package id
W3svc, 0, 3d14228c-fbe1-11d0-995d-00c04fd919c1}
Root, 2,
Iishelp, 2,
Iisadmin, 2,
Iissamples, 2,
Msadc, 2,
Root, 2,
Iisadmin, 2,
Iishelp, 2,
Root, 2,
Root, 2,

Out of process applications defined:
Count: 1
3d14228d-fbe1-11d0-995d-00c04fd919c1}

Updating applications:
Name: iis out-of-process pooled applications key:
3d14228d-fbe1-11d0-995d-00c04fd919c1}

From the execution of the above script, we can see that using synciwam. vbs scripts is more comprehensive and fast than using component services. It first finds the iwam_myserver of the iwam account from the metabase database of iis, obtains the corresponding password "aboutnt2001", and then searches for all the defined iis
Applications and out of process applications, and synchronize each out of process
The iwam account password of the applications application.
When using the synciwam. vbs script, you must ensure that iis
The metabase database and iwam password in active directory are consistent. Because the synciwam. vbs script is from iis
Metabase database instead of obtaining the iwam account password from active directory, if iis
The password in metabase is incorrect. The password obtained by synciwam. vbs is also incorrect. The synchronization operation is executed to "updating
Applications "the system reports a 80110414 error, that is," the application cannot be found.
3d14228d-fbe1-11d0-995d-00c04fd919c1 }".

Okay, so far, iwam accounts in active directory, iis
The password of metabase database and com + application has been synchronized successfully, and your asp program can run again!

After the modification is successful, the system prompts the following:
---------------------------------------------------
After testing, the display should be
Wamuserpass: (string )*******

 

Correct Method: First, download the IIS5.0 installation package, SP4,
2. Back up IIS, uninstall IIS, install IIS, and restore IIS backup. Everything is OK.

 

 

Winwebmail prompts admin Password error (valid only for other users)

Error message: admin cannot log on, and a Password error is prompted, but the requested mailbox can log on.

Solution: Same as above

First, download the IIS5.0 installation package, SP4,
2. Back up IIS, uninstall IIS, install IIS, and restore IIS backup. Everything is OK.

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.