As the saying goes, there are wet shoes that often walk by the river. The system was re-installed the other day. Recently, you need to use IIS to publish. net.Program. I have always been reassured that IIS throws an inexplicable 500 error, which makes me confused.
500 Error indicates an internal server error, which generally does not matter to the program. The final problem was solved, but n places were changed. The specific reason was not clear, and they could not run.
Note:If the display is incomplete, you can save the image as an image and view it on your computer!
1. enable easy-to-be-ignored services.
Go to "Control Panel --- Administrative Tools --- Service --- distributedtransaction coordinator ". Set this service to automatic and start it.
2. Permission configuration.
Step 1Modify the process ID of the website application pool to NetworkService. Specific.
Step 2To configure the connection identity. For example:
In the figure, enter the username of the current user in the system and the logon password of the current user in the system.
After the permission is configured, click "connection as" next to "test connection". If all the items listed are green check items and there is no yellow exclamation point, the permission is configured. If you do not configure permissions, you may not be able to access the website directory due to insufficient permissions.
3. Register. net.
If the Error 500 still persists after the preceding two steps, check whether the IIS service is enabled after VS is installed first. net Registration failed. Although it can be seen in IIS, but it is not registered, it will cause 500 error.
The registration method is very simple. Enter the following command in the CMD Command Prompt:
"% WinDir % \ Microsoft. NET \ framework \ v4.0.30319 \ aspnet_regiis.exe"-IRU-enable
After the installation is successful, there will be two more in the IIS application pool.
After doing this, please try it. Is it successful to open the. NET webpage?