IIS7 aspx出现500.21错误 从cmd找相应版本的framework目录下面运行aspnet_regiis -i,等它运行完就好了。 例如:C:\Windows\Microsoft.NET\Framework\v4.0.30319