Solve "HTTP 500 internal server error" and related errors when running ASP.

Source: Internet
Author: User
Solve "HTTP 500 internal server error" and "database connection error" when running ASP. Check the database parameter settings in the conn. asp file ." Problem
After N long attempts, we finally solved the problem that WINXP cannot run. asp .....
1. "HTTP 500 internal server error" occurs when you run ASP"
The main cause of this problem is Ms DTC startup failure,
Solution:

[1]: Check whether your DTC service (full name: Distributed Transaction Coordinator) can be started normally. If it is normal, skip this step. If an error occurs, it cannot be started normally, 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 % \ system32 \ inetsrv
Rundll32 wamreg. dll, createiispackage
Regsvr32 asptxn. dll
After restarting the machine, my problem can be solved perfectly in this step!
2. "database connection error. Check the database parameter settings in the conn. asp file ."

After clearing the system spam file using a batch of processing, the system prompts "database connection error. Please check the database parameter settings in the conn. asp file ."
In particular, the following Code Cleaned systems:
@ Echo off
ECHO is clearing the System junk file. Please wait ......
Del/f/S/Q % systemdrive % \ *. tmp
Del/f/S/Q % systemdrive % \ *. _ MP
Del/f/S/Q % systemdrive % \ *. Log
Del/f/S/Q % systemdrive % \ *. GID
Del/f/S/Q % systemdrive % \ *. Chk
Del/f/S/Q % systemdrive % \ *. Old
Del/f/S/Q % systemdrive % \ recycled \*.*
Del/f/S/Q % WinDir % \ *. Bak
Del/f/S/Q % WinDir % \ prefetch \*.*
RD/S/Q % WINDIR % \ Temp & MD % WINDIR % \ Temp
Del/f/Q % USERPROFILE % \ cookies \*.*
Del/f/Q % USERPROFILE % \ recent \*.*
Del/f/S/Q "% USERPROFILE % \ Local Settings \ Temporary Internet Files \*.*"
Del/f/S/Q "% USERPROFILE % \ Local Settings \ temp \*.*"
Del/f/S/Q "% USERPROFILE % \ recent \*.*"
Echo system cleared!
Echo. & pause
Solution: Delete WINDOWS \ Temp and create another temp. Go to Windows immediately and set the Security Attribute of temp (the "Security" attribute option will appear only after you remove the "tools-" Folder Options-"View-" use simple file sharing "check box ), set users to have write permission. OK. The problem is solved immediately.

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.