安装vs2010的时候忘记先安装IIS7了,导致出现了这个问题。经过网络查询发现解决方法如下:
运行:cmd命令,进入命令管理器,
输入:cd C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
输入:回车
输入:aspnet_regiis.exe /i