Solution to Server Application Error in iis

Source: Internet
Author: User

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.

When you access the iis client, the following error message is displayed,

Check the solution on the Internet 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 d: inetpubadminscripts (my system is on disk d ),
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_machinesystemcurrentcontrolsetservicesmsdtc
• Hkey_local_machinesoftwaremicrosoftmsdtc
• Hkey_classes_rootcid
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: inetputadminscripts> adsutil set w3svc/wamuserpass "yourpassword"
10. Synchronize the iwam_myserver password used by the com + application. In cmd: c: inetputadminscripts> cscript synciwam. vbs-v

This part of the Internet is okay for most of them, but although I do not have a 8004e00f error prompt here, but the server application error on the access page still persists. Finally, I finally found the solution 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 asp tutorial txn. dll

Well, for better understanding, let's take a graphic tutorial.

I learned a method on the Internet to solve this problem. Most of them are text expressions. It took me more than two hours to figure it out. I 'd like to share some pictures with you.

 

Right-click my computer and choose manage.

In the computer management point Event Viewer application, if you find a msdtc error, Hey, maybe you don't have to be so troublesome as me, in fact, if I take a look at iis before I reinstall it, I don't have to worry about it ...... I am not sure of my advanced skills! Double-click error message to open the dialog box:

Tell me this is because a log file is missing, so the msdtc service is not started. You can run msdtc-resetlog to create this log file. The ghost knows what the msdtc service is. If this is the case, you can create a file and start the msdtc service to test whether the asp webpage file can be opened. I am not so lucky, because I am looking for a new upgrade, please read the text later ~

The computer service list is displayed on the right side of the computer management point service and application services. If a problem occurs, you cannot find the service "distributed transaction coordinator, this is a service that appears only after I start msdtc. You can refer to the description in the figure above to learn how to start it. Don't worry. Let me solve my problem first.

At the computer management point, the user list of the system appears on the right side of the local user and the user in the group. Sorry, I have mosaic my username, change the password for iusr _ and iwam _. Remember to change the password to the same one. Right-click iusr _ machine name. The first item in the menu is to change the password:

Of course, this is the continuation. We cannot be scared back by this long article.

Set the password to "123456", and set the iwam _ machine name in the same way. Click start and run. Enter "cmd" and press enter.

Open the dos window and enter "cd c: inetpubadminscripts". You can replace it with the system installation drive letter:

The following is a list of files in this directory. It's hard to know what it is ......

Enter “cscript.exe adsutil. vbs set w3svc/wamuserpass 123456 ". You can replace 123456 with the password you just set in the computer management office, which must be the same.

Enter “cscript.exe adsutil. vbs set w3svc/anonymoususerpass 123456 ". Similarly, it must be the same as the password set above.

The prompt shown in the figure above indicates that the password has been set successfully. Then, synchronize the system password. We enter “cscript.exe synciwam. vbs-v ".

Most of them may pass this operation. The system is normal, but unfortunately, the error message "error: 8004e00f" appears in the bottom line, this is why msdtc is not started properly ......

So I entered "net stop msdtc" in the dos window to check whether the service was started. The following figure is displayed:

The system does not start msdtc. I first unload it with "msdtc-uninstall", then reinstall it with "msdtc-install", and then create a log file with "msdtc-resetlog, finally, start the service with "net start msdtc. Synchronize the system password. Enter “cscript.exe synciwam. vbs-v and press enter.

No error. Can I check whether the asp page is successfully opened? Maybe you can do it all, but you still can't ...... Register related components. In the dos window, enter "cd windowssystem32inetsrv" to enter the inetsrv directory in the system folder.

Enter "rundll32 wamreg. dll, createiispackage"

Enter "regsvr32 asptxn. dll"

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.