Solve the IIS server application error)

Source: Internet
Author: User

Today, when I was engaged in IISServer Application ErrorError message. The error message is as follows:

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.

So Google saw several solutions and used them to record them:

IIS appearsServer Application ErrorThe error solution is as follows:

1. Right-click my computer-Manage-local users and groups, and set the password for IUSR _ machine name and IWAM _ machine name.

2. Start-run-press cmd,

Then cd C: \ inetpub \ adminscripts (my system is on drive C ),

Then cscript.exe adsutil. vbs set w3svc/wamuserpass your password,

Then cscript.exe adsutil. vbs set w3svc/anonymoususerpass your password

Can you see it? If not

Cscript.exe synciwam. vbs-v,

Then iisreset.

It is said that this is okay, but the error 8004e00f is prompted at the end. This error is caused by the exception of the MSDTC Service. solution:

First, go to the component service and check the component service/computer/my computer/COM + application. The error "COM + cannot talk to Microsoft Distributed Transaction Coordination Program" is returned ", you cannot view the objects in it.

2. Go to the Event Viewer and find that the msdtc Service is not started properly.

3. Delete the keys in the registry:

· HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSDTC

· HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSDTC

· HKEY_CLASSES_ROOT/CID

4. stop MSDTC: net stop msdtc

5. uninstall the MSDTC Service: msdtc-uninstall

6. reinstall the MSDTC Service: msdtc-install

7. confirm that the msdtc Service has been started properly in the Event Viewer. [This step is critical. If not, restart your computer.]

8. Reset the iis iwam account password. [In User Management in Computer Management]

9. Synchronize the password of IWAM_MYSERVER in IIS metabase, in CMD: c: \ Inetpub \ AdminScripts> adsutil SET w3svc/WAMUserPass your password

10. Synchronize the IWAM_MYSERVER password used by the COM + application, in CMD: C: \ inetpub \ adminscripts> cscript synciwam. vbs-v

Most of the websites can be accessed, but although I have no error message for 8004e00f, visit the pageServer Application ErrorThe error persists. Finally, the solution is found as follows:

Solution:

[1]:

Check whether your DTC service (full name: Distributed Transaction Coordinator) can be started normally,

If this step is normal, skip this step. If an error occurs and cannot be started properly, run msdtc-resetlog in the Start menu to create a log file. Restart the machine and check whether IIS can be used normally. If not, continue.

[2]:

Run the following command in CMD:

Cd % windir % system32inetsrv

Rundll32 wamreg. dll, CreateIISPackage

Regsvr32 asptxn. dll

(I can use it here, without restarting)

OK, ASP page is all normal

If not, try the following methods:

1. cd % windir % \ system32 \ inetsrv rundll32 wamreg. dll, CreateIISPackage regsvr32 asptxn. dll

2. Choose Start> set> Control Panel> Administrative Tools> component service, "console root directory"-> "component service"-> "computer"-> "my computer"-> "COM + application, there is an "IIS Out-Of-Process Pooled" right-click "properties"-"ID"-adjust "this user" to "Interactive User-currently logged-on user ". Then, click "OK" and Right-click "properties"-"start ".

3,1. Start the MSDTC Service

WIN + R. Run cmd and enter:Net start msdtc
If "distributed transaction coordinator service cannot be started" is displayedC: \ WINDOWS \ system32 \ dtclogRename the directory (if any, skip this step) and recreate the directory.
Then, enter:Msdtc-resetlogAnd then enterNet start msdtc, Indicating that the service is successfully started.

2. Set "IUSR _" and "IWAM _" passwords

OpenStart-all programs-Administrative Tools-Computer Management-local users and groupsSet passwords for "IUSR _ machine name" and "IWAM _ machine name" respectively. If the two are the same, it is easier here.

3. Configure the Database Password for IIS Synchronization

To verify that the passwords in step 2 are consistent, check the passwords of "IUSR _" and "IWAM _" respectively.

WIN + R. Run cmd and 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 check the passwords of IWAM and IUSR. If the two passwords are different, modify them:
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"
"Password" is the same as the "IWAM _" password set in step 2. Press enter to complete the modification.

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

4. Change the password in the component service

WIN + R. Run cmd and enter:Cd c: \ inetpub \ adminscripts
Then enter:Cscript.exe synciwam. vbs-v
Finally, restart IIS:Iisreset

After step 4, the operation is OK.Http: // localhost/Try it? If the problem persistsStep 5:Run the command in cmd (each line is a separate command, input three times, and press enter to execute ):

Cd % windir % \ system32 \ inetsrv
Rundll32 wamreg. dll, CreateIISPackage
Regsvr32 asptxn. dll

Close all IE Windows and try again.

TheServer Application ErrorThe error should be fixed :)

Source post address: http://blog.e-works.net.cn/379378/articles/65214.html information blog

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.