Solve the problem that only HTM files can be run after IIS is installed and ASP cannot be run

Source: Internet
Author: User

Problem: I installed IIS and put my ASP file (index. ASP) in the default home directory wwwroot folder, open IE and run http: // localhost/index. ASP, but the page cannot be opened, HTTP 500 internal server error. however, if you enter http: // localhost/index.htm (index.htm ),

  • Solution:

    1. View website properties-document
    Check whether index. asp index.htm index.html exists in the default document. (It is best to have all of them. No options can be added)

    2. View website properties-Home Directory
    A. Is the local path specified correctly?
    B. Check "Access to script resources "?
    C. Check "read "?
    D. Execution permission: script-only

    3. View website properties-Directory Security-Edit
    A. Do you want to check "Anonymous Access "?
    B. User name: IUSR _ your computer name (if not, Click Browse and select)
    C. Do not change the password. Check "allow IIS to control the password ".
    D. Do not select others

    4. View website attributes-website
    A. IP Address: none or select one
    B. TCP port: 80 (it is best not to change the access method)

    5. Open Control Panel-management tools-Computer Management-local users and groups-Users

    A. Check whether the user has started "IUSR _ your computer name". The user must be started (Note: red X indicates that the user has not started)

    B. Check whether the user has started "IWAM _ your computer name". The user must be started (Note: Red × indicates that the user has not started)

    C. Right-click the user on "IWAM _ your computer name" and choose "set password" (remember the password and use the password later. I set it to 123456 here)

    6. Open Control Panel-management tools-component services-computers-my computers-COM + applications
    (Note: if an error dialog box is displayed for the COM + application, you cannot see the following three IIS components. For details about this error, refer to the following section. you must fix this problem and then reinstall IIS to see the following three components)
    A. On "IIS Out-of-process pooled Applications", right-click and choose 'properties'> 'identified' to specify the user: IWAM _ your computer name (note: click Browse to find the password. Enter the password in the above steps. Start the service again. (If you are prompted that the account and password are invalid, you can also select "attribute" -- select "identifier" -- "system user ')

    B. On "IIS In-process applications", right-click "properties" and choose "security" to remove "enable authentication ".

    C,
    On "IIS utilities", right-click "attribute" and choose "security" to remove the "enable authentication.

    Finally, it is tested.

     

    **************************************** *****************************

    There is an error in this process:

    Open "component service"> "computer"> "my computer"> "COM + application". A dialog box is displayed when "COM + application" is opened: the error code 8004e00f-com + cannot communicate with the Microsoft Distributed Transaction Coordination Program. Event Logs may contain other troubleshooting information.

    The following is my analysis of the problem method: 1, at first thought that is ms dtc dependent services have not started, carefully check after no related services have not started! 2. Check whether the user permissions for starting com are insufficient. A. Click Start and run, type dcomcnfg, and click OK ".
    B. Click the "Default Security Settings" tab.
    C. Under "default access permission" and "default start permission", click "Edit default value ".
    D. Verify the following default access permissions: system, interactive, and administrators have the "Allowed access" permission
    No problem after verification. 3. Check whether the MSDTC Service is actually stopped.
    Net stop MSDTC
    Tip: MSDTC Service is not started. 4. Check whether the user's password file Sam is lost, and the password cannot be obtained. Therefore, you cannot log on to a. Modify the password of the iwam_myserver account in IIS. In C: /inetpub/adminscripts/directory (default directory for IIS installation), enter: C:/inetpub/adminscripts> cscript adsutil. vbs set w3svc/wamuserpass "123456"
    B. The iwam_myserver password used to synchronize COM + applications. There are two methods described in the original technical article. Here I use the second method, that is, "Use the IWAM account synchronization script ynciwam. in the C:/inetpub/adminscripts directory (default directory), enter:
    C:/inetpub/adminscripts> cscript synciwam. vbs-V
    An error is reported in the last part of the execution. Error Message
    Start com with the same error message. 6. Search for the ms dtc log file. The strange thing is that it is not found. This realizes whether its log file has been deleted by mistake. Use MSDTC-resetlog to create a log file.
    Start COM + again and no error message is displayed. At this point, all fault phenomena are eliminated! Therefore, pay attention to the following points:
    1. Do not easily clear the event records in the event log. You need to find the cause for many failures;
    2. Check the user permissions and startup permissions of the COM + program.
    3. Important system files (such as Sam) cannot be easily deleted. For example, you can use an external program to modify the registry or Sam table information to obtain administrator privileges. But never delete the file.

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.