安装。NET Framework后再安装iis会导致问题:“访问IIS元数据库失败”,无法浏览页面。
原因:IIS未注册。
解决方案:
在煤矿管理局中进入目录C:\WINDOWS\Microsoft .NET\Framework\v2.0.50727,运行aspnet_regiis
1. aspnet_regiis -ga administrator (the administrator is the current user)
2、aspnet_regiis -i(注册IIS)
3、iisreset /noforce(重启IIS)
操作细节:
C:\Documents and Settings\Administratorcd c:\\windows\\microsoft.net\\framework\\v2.0.50727
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727aspnet_regiis -ga administrator
Start granting administrator access to the IIS metabase and other directories us
ed by ASP.NET.
Finished granting administrator access to the IIS metabase and other directories
used by ASP.NET.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727aspnet_regiis -lv
2.0.50727.0 Valid C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\as
pnet_isapi.dll
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727aspnet_regiis -i
Start installing ASP.NET (2.0.50727).
..
Finished installing ASP.NET (2.0.50727).
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727aspnet_regiis -lv
2.0.50727.0 Valid (Root) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\as
pnet_isapi.dll
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727iisreset /noforce
Attempting stop.
Internet services successfully stopped
Attempting start.
Internet services successfully restarted
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727