操作方法
运行CMD,进入DOS命令 输入 C:\Windows\Microsoft.NET\Framework\v4.0.30319输入aspnet_regiis -i
如果出错会提示查看安装日志 C:\Documents and Settings\Administrator\AppData\Local\ASPNETSetup_XXXXX.log
我的出现了 2015-01-25 23:37:53 Failure Installing WMI file:aspnet.mof: InstallMOF failed with HRESULT 80004005: '未指定的错误 ' 这种情况可能是由于被损坏的wmi库造成的
在网上找到一个重建WMI库的批处理 http://blog.csdn.net/xuxc/article/details/2230277 把以下代码复制存成.bat文件 net stop winmgmtc:cd %systemroot%/system32/wbemrd /S /Q repository regsvr32 /s %systemroot%/system32/scecli.dllregsvr32 /s %systemroot%/system32/userenv.dll mofcomp cimwin32.mofmofcomp cimwin32.mflmofcomp rsop.mofmofcomp rsop.mflfor /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%sfor /f %%s in ('dir /b *.mof') do mofcomp %%sfor /f %%s in ('dir /b *.mfl') do mofcomp %%secho DONE rebootpause
运行后重启,重新安装IIS中的ASP,正常运行!