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.