Win7 ASP. NET HTTP 500 Internal server error resolution

Source: Internet
Author: User

There were many mistakes in succession, and several of them finally solved!!!

As the saying goes, often go by the river where there are not wet shoes. The system was reinstalled some days ago, and a. NET program is recently required to be published with IIS. I have always been very relieved that IIS unexpectedly throws out the inexplicable 500 error, let me confused.

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

Note: To have the display is not complete, can save the picture as, on the computer to see can!

1. Open services that are easy to ignore.

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

2. Permissions configuration.

The first step is to modify the site application pool process identity as: NetWorkService. Specific.

The second step is to configure the connection identity information. Such as:

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

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

3. Register. NET.

After the above two steps if you still have a 500 error, please remember carefully if you first installed vs before opening the IIS service, which will cause the. NET registration in IIS to fail, although it can be seen in IIS, but not registered, resulting in a 500 error.

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

When you are prompted for successful installation, there are two more IIS application pools.

I tested or did not succeed but prompted:

So:

1, the usual workaround: Because the temp directory under the system directory does not have the appropriate permissions, do the following:c:\windows\temp--> properties---safe----Add Network The read and write permissions of the service user can be resolved.

2. Open Server System C drive, open window, right-click Temp Property Security Edit Add Iis_iusrs user Control permission to add modify and Write permissions. This is the solution for Windows Server R2 Standard Edition SP1 64-bit Chinese version. (Mine is the problem. This solves, the network service above does not have the line)

However, the problem is not resolved, so the following operation!!!

Start → Run →c:\windows\microsoft.net\framework64\v4.0.30319\aspnet_regiis-i-enable

Problem solved perfectly!!!!

Win7 ASP. NET HTTP 500 Internal server error resolution

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.