Win7 IIS7.5 500 Error solution when running ASP _win server

Source: Internet
Author: User

An HTTP 500 Internal server error indicates that the IIS server cannot parse the ASP code, and if you are networked, it is 500 wrong to find the server.

IIS settings inside the IIS7 to turn on the option to enable the parent path, after that, of course, in order to debug the program can open the "ASP Settings Options-Debug Properties" inside some debugging functions to facilitate the debugging of the program.

Win7 IIS7.5 a 500 error solution when running ASP

Please make sure that the IIS configuration is complete on your computer and the static page will open, but there will be a 500 error opening the ASP. Then configure the following. Specifically as follows:

First, enter the "C:\Windows\ServiceProfiles\NetworkService\AppData\Local" (if entered C:\Windows\ServiceProfiles\ NetworkService there is no appdata directly in the address bar input).

Second, right-click on the "Temp" folder--> properties--> Security--> Select Authenticated Users (if not, click here: Edit--> Add--> Advanced--> Find Now--> Select Authenticated Users this user--> determine--> OK)--> put "Full Control" on the hook--> determine--> OK.

Third, go to Internet Information Services (IIS) Manager Start menu search for IIS and come out.--> double-click ASP

To expand the "behavior" of this, "enable the parent path" to "ture", the right Point "application" on the OK.

Of course, you have to set your default document, path, and so on.

First, start--> Control Panel--> Uninstall program

Second, turn on or off Windows features-->internet information Services (put the services you need on the hook, for example, I need ASP but do not need FTP)

OK, wait for configuration to reboot, and then on the system disk (my is C:\) can see the Inetpub folder.

The browser input "localhost" can open the following page to indicate that the configuration is successful, if not successful return the above attention check.

When this IIS configuration is complete, the static page can be opened, but there will be a 500 error opening the ASP. Then configure the following. Specifically as follows:

First, enter the "C:\Windows\ServiceProfiles\NetworkService\AppData\Local" (if entered C:\Windows\ServiceProfiles\ NetworkService there is no appdata directly in the address bar input).

Second, right-click on the "Temp" folder--> properties--> Security--> Select Authenticated Users (if not, click here: Edit--> Add--> Advanced--> Find Now--> Select Authenticated Users this user--> determine--> OK)--> put "Full Control" on the hook--> determine--> OK.

Third, go to Internet Information Services (IIS) Manager Start menu search for IIS and come out.--> double-click ASP

To expand the "behavior" of this, "enable the parent path" to "ture", the right Point "application" on the OK.

Of course, you have to set your default document, path, and so on.

500 error is a server internal error, general and the program does not matter. The final problem is solved, but the change of n places, the specific reason is not very clear, anyway, can not run these places.

Note: The following diagram shows incomplete, you can save the picture as, on the computer to see it!

1. Open services that are easily overlooked.

Go to the Control Panel---management tools---service---distributedtransaction coordinator. Set the service to automatic and start it.

2. Permission configuration.

The first step is to modify the Web site application pool process identity as: NetworkService. As shown in detail.

The second step is to configure connection identity information. The following figure:

The user name in the figure fills in the username of the current user of the system, and the password fills in the current user's login password.

After the permissions have been configured, point "Connect as" next to "Test connection", if the listed items are all green to hook, no yellow exclamation point, the permissions are configured. If you do not configure permissions, it is likely that the site directory will not be accessible because of insufficient permissions.

3. Register. NET.

If you still have a 500 error in both of these steps, recall that the IIS service that was first installed VS, then turned on, will cause. NET registration in IIS to fail, although it can be seen in IIS but not registered, resulting in 500 errors.

The registration method is simple, and you can enter the following command at the cmd command prompt:

"%windir%\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe"-iru–enable

Tip After a successful installation, there are two more IIS application pools.

Do the work, and try it out successfully. NET Web page?

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.