Summary of the 500 Error solution for running ASP. net programs on IIS In win7

Source: Internet
Author: User

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 1
Modify the process ID of the website application pool to NetworkService. Specific.


Step 2
To 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?

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.