Win7 IIS runs asp.net program 500 error Solution Summary __.net

Source: Internet
Author: User

As the saying goes, often walk along the river where there is no wet shoes. The system was reinstalled a few days ago, and recently the. NET program needs to be published with IIS. I have always been very relieved that IIS unexpectedly threw out a baffling 500 error, let me confused.

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 can see.


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 these things, Try it quickly, it is not open 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.