Solve the problem that ASP. NET 4.0 has not been registered on the Web server.

Source: Internet
Author: User
Today I encountered a problem:
ASP. NET 4.0 has not been registered on the Web server. To make the website run correctly, you may need to manually configure the Web server to use ASP. NET 4.0. Press F1 to learn more details.
In fact, I have encountered it many times before, but today's situation is different.
This is usually the case in the past:
1. This error occurs when the. net 4.0 asp.net program is deployed in iis 6. It should be installed first. net 4.0, and then installed iis6 will have this problem.
Solution:
First, set the net framework version of the IIS application pool to 4.0.
Note: pay attention to the x86 or 64-bit machines. Different directories!
Then Start-> all programs-> attachments-> right-click a command prompt and choose run as administrator-> % windir %/Microsoft. NET/Framework/v4.0.30319/aspnet_regiis.exe-I
 
2. Today's scenarios are different, but the reasons are the same. In the compiling environment: vs2013, this prompt is displayed after IIS express is changed to the IIS server. The solution is as follows.
In the compilation environment, you can also change back to: IIS express to continue to use.

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.