Translated from: http://www.cnblogs.com/koeltp/archive/2012/03/24/2415430.html
Previously wrote a Web site, the. NET Framework version is v3.5, and last night rewritten some methods, called a method, found that the 3.5 version of the No, so in the VS2010 to upgrade it to the v4.0 version. This morning in a netizen he configured IIS problem, ask me, I looked under, should be the problem of data connection, so I first put my website run down to see, the result, IIS is version is V2.0 version, and my website is V4.0 version of. Error running .... So I upgraded IIS, too. The result is an error that appears:
On the internet to find a reason, the result is
Cause: After you install the framework v4.0, IIS is enabled, causing the framework to not be fully installed
Solution: Enter CMD in the start search program to find the command Manager, and then enter the following string of characters:
%windir%\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe-i
:
ASP. NET HTTP error 500.21-internal Server error