ASP. NET 4.0 not registered on the Web Server

Source: Internet
Author: User

Create an ASP. NET empty website under the. netframework 4 framework in win7 and vs2010. System prompt

"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."

After checking Baidu, you will find that this error occurs because IIS 7 adopts a safer web. Config Management Mechanism. By default, the configuration item is locked and cannot be changed.

Modification Method: 1. Run win + R

 
C: \ windows \ Microsoft. NET \ framework \ v4.0.30319 \ aspnet_regiis.exe-I

 

Register Asp.net again. WhereV4.0.30319Is the version of the framework.

The 64-bit operating system should be

 
C: \ windows \ Microsoft. NET \ framework64 \ v4.0.30319 \ aspnet_regiis.exe-i

 

. NET Framework

Version Number

1.0

V1.0.3705 and v1.1.4322

2.0

V2.0.50727

3.0

V3.0 and v3.5

4.0

V4.0.30319

 

 

 

 

 

 

 

The version numbers in the preceding table can be viewed in the c: \ windows \ mincrosoft.net \ framework directory. Each version number has an independent folder. If the system prompts"ASP. NET 2.0 not registered on the Web Server", You only needV4.0.30319ChangeV2.0.50727You can.

 

2. to cancel the lock, run the command line:

 
% Windir % \ system32 \ inetsrv \ appcmd unlockconfig-Section: system. webserver/handlers

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.