IIS internal service error aspx and ASP

Source: Internet
Author: User
Tags metabase

Open Event Viewer:

There is an error in the system event: the Distributed Transaction Coordinator service is stopped due to a 3221229584 (0xc0001010) service error.

After many tests, it was found that the system could not find the ms dtc log file. Just create the file:

Click Start → run → enter the command "MSDTC-resetlog" to run the command.

Restart your computer or run the "Distributed Transaction Coordinator" service in the service.

DCOM encountered an error "Logon Failed: Unknown user name or wrong password
Pai_^ Xiao _ letter published on 11:39:00

DCOM encountered an error "Logon Failed: Unknown user name or wrong password

And cannot log on to the. \ IWAM_PC-HANXIN to run the server:
{3d14228d-fbe1-11d0-995d-00c04fd919c1}

In the browser:

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.

 

Post:

Ii. Cause Analysis

 

According to the above error analysis, we can see that the internal HTTP 500 error is mainly caused by the Password error of the IWAM account (iwam_myserver account on my computer.

 

Before analyzing the cause of an internal error in http500 in detail, let's give a brief introduction to the IWAM account: the IWAM account is a built-in account automatically created by the system when iis5 is installed, it is mainly used to start Internet Information Services for applications outside the process. The name of the IWAM account varies depending on the NetBIOS name of each computer. The common format is iwam_machine, it is composed of the prefix "IWAM", the connection line "_", and the computer's NetBIOS name. My computer's NetBIOS name is myserver, so the IWAM account name on my computer is iwam_myserver, which is very similar to the way in which the IIS Anonymous Account isur_machine is named.

 

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. We can rest assured that the work undertaken by the operating system does not have to worry about errors, but we do not know whether it is a bug or another reason. The system sometimes fails to synchronize the password of the IWAM account, the password used by the third-party IWAM account is inconsistent. When IIS or COM + applications use the wrong IWAM password to log on to the system and start IIS Out-of-process pooled applications, the system rejects this request due to a wrong password, this causes IIS Out-of-process pooled applications to fail to start, that is, the "cannot run server {3d14228d-fbe1-11d0-995d-00c04fd919c1}" we see in the id10004 error event (here {token} is the key of IIS Out-of-process pooled applications ), it cannot be transferred to the iis5 application. An internal HTTP 500 error occurs.

 

 

 

Iii. solution:

 

1. Reset the IWAM Password

 

Open my computer "manage", switch to "local users and groups", click "user", select "iwam_computer_name" user, right-click and select "set password ", in the Reset Password dialog box that appears, set a new password for iwam_computer_name. Here we set it to "rock2006" (without quotation marks). OK, wait until the password is successfully modified.

 

2. Synchronize the password of iwam_computer_name in IIS metabase

 

This change may be too sensitive and important. Microsoft does not provide an explicit user interface for modifying the iwam_computer_name account and password in IIS metabase. Only one management script adsutil is provided 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_computer_name account password:

 

Go to c: \ Inetpub \ adminscripts under cmd

Cd c: \ Inetpub \ adminscripts

C: \ Inetpub \ adminscripts> adsutil set w3svc/wamuserpass password "rock2006"

 

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

 

Wamuserpass: (string )"**********"

 

3. Synchronize the iwam_computer_name password used by the COM + application

 

Synchronize the iwam_computer_name password used by the COM + application. We use the component service MMC Management Unit.

 

(1) Open the control panel and go to the management tool, find "component service"> "computer"> "my computer"> "COM + application"> "out-of-process pooled Applications ", right-click "out-of-process pooled Applications"-> "properties ".

 

(2) 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. The user name is "iwam_computer_name ". These are all default values and do not need to be modified. Enter the correct password "rock2006" in the "password" and "Confirm Password" text boxes below to exit.

 

(3) 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 ?" .

 

If we set "application protection" for some other web 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)-(3) To synchronize the IWAM account and password of the corresponding out of Process application.

 

 

Transferred from: http://blog.cnool.net/linux622/archive/2006/05/09/17660.html reproduced please note!



Iis http 500 internal server error server unable to load application '/lm/W3SVC ''/lm/W3SVC'' cannot find the specified metadata

Running Environment: Windows XP SP2
Symptom:
[1] "HTTP 500-internal server error" occurs when you browse the host's. Net script"

[2] view computer system events and find that a warning is displayed every time you browse the. NET script:

Event Type: Warning
Event Source: w3svc
Event Type: None
Event ID: 36
Date: 2006-9-4
Event: 15:48:51
User: N/
COMPUTER: fitmos
Description:
The server cannot load the application '/lm/w3svc '. The error is 'the specified metadata cannot be found. '.

View the information on the network and find that it is related to the DTs service.
Enter the command "services. MSC ", looking for the DTC service (full name: Distributed Transaction Coordinator), found that the Service list does not have this service, go to c: \ windows \ system32 to find the MSDTC directory, in addition, wamreg.dlland asptxn.dllare available in c: \ windows \ system32 \ inetsrv, and msdtc.exe is also available in system32. it seems that the MSDTC Service is not installed.

Run the command to install MSDTC-install
Run services. MSC and find that the DTC service is already in the list. set it to "automatic" and start it.
Make sure that the MSDTC Service has been started properly in the Event Viewer. [This step is critical. If not, restart your computer.]
The following command can be run only after MSDTC is started. Otherwise, the command will fail.
Cd % WINDIR % \ system32 \ inetsrv

Rundll32 wamreg. dll, createiispackage

Regsvr32 asptxn. dll

(Note that createiispackage is case sensitive .)

At this time, refresh the ASPX page to be run. That's great. It can be displayed normally !!

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.