After the Win7 operating system is installed, VS2010 runs the project and then " ASP. NET 2.0 is not registered on the WEB server. For the Web site to work correctly, you may need to manually configure the Web server to use ASP. F1 to learn more details.
"Prompt, click OK after the project can be compiled successfully, but when running on the browser it prompts"HTTP error 500.19-internal Server error cannot access the requested page because the page's related configuration data is invalid. " error code 0x80070021
This error is due to the fact that IIS 7 has a more secure Web. config management mechanism, which locks the configuration items by default and does not allow changes.
Modification Method:
1, Win+r run C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe-i re-register the ASP.
Where v2.0.50727 is the version number of the framework, you can manually check the directory for confirmation.
64-bit operating system, should be C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe-i
2. To unlock you can run the command line: "%windir%\system32\inetsrv\appcmd unlock Config-section:system.webserver/handlers"
ASP. NET 2.0 is not yet registered on the WEB server. For the Web site to work correctly, you may need to manually configure the Web server to use ASP. F1 to learn more details.