IIS running Error Server Application Error code Error: 8004 Solution

Source: Internet
Author: User

This article will re-fix the Server application Error solution, fix the path problems involved in the command, and use the commands in this article, you will not need to care about the path problem:

Iis Repair Tool download iis_repair_jb51.rar

1. Right-click my computer --> Manage --> local users and groups --> users, on the right side, set the password to 123 for both "IUSR _ machine name" and "IWAM _ machine name;
2. Start --> Run --> cmd, and then enter the following commands in the command line window (one line of input );
   Copy codeThe Code is as follows: cscript.exe % HOMEDRIVE % \ Inetpub \ Adminscripts \ adsutil. vbs set w3svc/wamuserpass 123
Cscript.exe % HOMEDRIVE % \ Inetpub \ Adminscripts \ adsutil. vbs set w3svc/anonymoususerpass 123

I need to check whether IIS is normal here, but it seems that I have encountered this problem before. This time it is still the same. Here, 90% is still the problem.
Then proceed.
   Copy codeThe Code is as follows: cscript.exe % HOMEDRIVE % \ Inetpub \ Adminscripts \ synciwam. vbs-v
Iisreset

After the operation, I am prompted that error: 8004e00f is a MSDTC Service exception. If there is no such prompt, congratulations! You have fixed it successfully.
Continue:
3. Delete the keys in the registry:

Copy codeThe Code is as follows: // HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSDTC
· // HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSDTC
· // HKEY_CLASSES_ROOT/CID

4. continue in the CMD window just now, type the command (STOP and reinstall the MSDTC Service ):

Copy codeThe Code is as follows: net stop msdtc
Msdtc-uninstall
Msdtc-install

5. Re-follow the instructions in step 1 (set the passwords of two system users );
6. Run the CMD command to synchronize the password of IWAM_MYServer in IIS metabase:

Copy codeThe Code is as follows: % HOMEDRIVE % \ Inetpub \ Adminscripts \ adsutil. vbs set w3svc/wamuserpass "123"

7. Run the CMD command to synchronize the IWAM_MYServer password used by the COM + application:

Copy codeThe Code is as follows: cscript % HOMEDRIVE % \ Inetpub \ Adminscripts \ synciwam. vbs-v

After the operation, although I did not receive an Error message of 8004e00f, But I tested IIS, the problem persists. The access page is still "Server application Error ".
You have to continue the operation:
Check whether your DTC service (full name: Distributed Transaction Coordinator) can be started normally.

Run the following command in CMD:
   Copy codeThe Code is as follows: runDLL32 % windir % \ system32 \ inetsrv \ wamreg. DLL, CreateIISPackage
Regsvr32 % windir % \ system32 \ inetsrv \ asptxn. DLL/s

This is a success!

Below are some supplements

First, perform this operation...

1) Right-click my computer ----> manage to open the computer management interface
Open local users and groups ----> Users
Right-click to start the IIS process account IWAM _ ***** (Note: ***** is generally the computer name)
Click set password to set the password you want.

2) synchronize IIS to configure the database password:
There are two types of commands: one is to view the password, and the other is to change the password:

A. You can use the view PASSWORD command to view the IWAM password, and then set the user IWAM password in step 1 to the same as the IIS configuration database password.

B. You can also use the password change command to change the password of the IIS configuration database to the IWAM password you modified in the first step.

You can choose either of them.

View password:
Note: in WIN2000, the password is an asterisk. If it is not an asterisk, you must first modify the adsutil. vbs file.

Modification method:
A. Find adsutil. vbs from drive C to inetpub \ adminscripts (some paths may be different depending on the settings when installing the system)
B. Right-click and open it with notepad
C. Search for IsSecureProperty = True. Note = each character has a space
D. Change IsSecureProperty = True to IsSecureProperty = False.
E. Save, close, and OK.

Not long-winded, listed below

Command for viewing passwords:

Start ---> program ---> attachments open command prompt
Enter cd c: \ inetpub \ adminscripts

Command for getting IWAM account password: cscript.exe adsutil. vbs get w3svc/wamuserpass

Command for getting IUSR account password: cscript.exe adsutil. vbs get w3svc/anonymoususerpass

Enter the preceding command and press enter to view the IWAM and IUSR passwords respectively.

Password Change command:

Change IWAM account password cscript.exe adsutil. vbs set w3svc/wamuserpass "password"

Modify the IUSR account password cscript.exe adsutil. vbs set w3svc/anonymoususerpass "password"

Set the password you want to change, that is, the same as the user IWAM _ *** you set in step 1. Press enter to complete the modification.

Note that the parallel bars between w3svc and wamuserpass are "/" rather than "\". Otherwise, an error occurs.

Note: before changing the password, stop all Internet Information Services. Otherwise, an error may occur and the IWAM account may be locked.

How to stop? Open Computer Management, right-click Internet information service, and choose restart IIS service. In the options, click Stop IIS service and click OK.

3) change the password in the component service

Start ---> program ---> attachments open command prompt
Enter cd c: \ inetpub \ adminscripts first

Enter cscript.exe synciwam. vbs-v

The system will prompt:

Reference content
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}

If it is shown above, it indicates that your IIS has been successfully started,

If Error: 8004E00F: Don't worry, you need to perform the following operations...

Error: 8004E00F occurs when synciwam. vbs-v is executed.
Refer to the following

The following error occurs during password synchronization:

C: \ Inetpub \ AdminScripts> synciwam. vbs-v
IIS Applications Defined:
Name, AppIsolated, Package ID
ROOT, 2,
IISHelp, 2,

Out of process applications defined:
Count: 1
{3D14228D-FBE1-11d0-995D-00C04FD919C1}

Error: 8004E00F:

C: \ Inetpub \ AdminScripts>

Solution:
1. First, go to the component service and check the component service/computer/my computer/COM + application. If the error "COM + cannot talk to Microsoft Distributed Transaction Coordination Program" is reported ", you cannot view the objects in it. Then proceed to the following
2. Go to the Event Viewer to check whether the msdtc Service is properly started. (It should be none)
3. Delete the keys in the registry:
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ MSDTC
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSDTC
HKEY_CLASSES_ROOT \ CID
(Delete all. Oh, don't be afraid. The Registry is not terrible)

4. the prawns on this network do not seem to mention that it is To uninstall IIS and reinstall it. Well, it's much faster than checking out what services... Of course, this is because you have an IIS installation file or a system CD. Haha. I hope this article will be useful to some friends. If you have other methods, don't forget to tell me !~

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.