Thursday, February 03, 2005

User ID and Password is incorrect for IWAM Account

Assumption

Operating System : Windows 2000



Error

While accessing ASP page, the browser may return the "HTTP 500 - Internal server error" [When Show Friendly HTTP error Message is enabled] or "Server Application Error" error message [When Show Friendly HTTP error Message is disabled]



When you look into the System Event Log, the following error message will be logged

Information : W3SVC Error: "The server failed to load application '/LM/W3SVC/4/Root'. The error was 'c000003b'."

-and-

Error : W3SVC Error: "The COM Application '{3D14228D-FBE1-11d0-995D-00C04FD919C1}' at '/LM/W3SVC/4/Root' failed to activate out of process."



Cause

The reason for this is : UserName and Password for IUSR_MachineName and IWAM_MachineName will not be same at the following locations

1. IIS

2. Local User and Groups

3. Component Services - The UserName and Password should be same in all the three locations



Solution

1. Get the current Password for IUSR_MachineName and IWAM_MachineName from IIS. Follow the below procedure

Open the command prompt

Change the directory to \Inetpub\Adminscripts

Run the command "adsutil.vbs get w3svc/anonymoususerpass" to get IUSR_MachineName Password

Run the command "adsutil.vbs get w3svc/wamuserpass" to get IWAM_MachineName Password

If the Password is displayed as asterisks, Change the following in the Adsutil.vbs file

Search for "IsSecureProperty = True" text, change this property to False

Use the following to set Password for respective users

adsutil.vbs set w3svc/anonymoususerpass "password"

adsutil.vbs set w3svc/wamuserpass "password"



2. Synchronise the Password of respective users in Local Users and Groups

Under this select Users nodes

Right click on IUSR_MachineName, set the Password to the one got in the last step for IUSR_MachineName

Right click on IWAM_MachineName, set the Password to the one got in the last step for IWAM_MachineName



3. Synchronise the Password in Component Services or MTS [Microsoft Trasaction Server]

Open the command prompt

Change the directory to \Inetpub\Adminscripts

Run the command synciwam.vbs -v

Synciwam.vbs resets all out-of-process applications to IWAM_ComputerName



Restart the IIS for changes to take effect



Check for the access of asp pages.



Might be in this process the default http port 80 will be changed, check that, if it is changed - change it to 80. Follow the below process for this

Open IIS -> Default Website -> Properties -> TCP Port [Change this to 80 if it is changed]

No comments: