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.