ASP.NET的折磨
What a unpleased afternoon when I test my ASP.NET with IIS5.1, First I cannot run DTC.I use MMC in cmd window, then do the following steps:
1.click "增加/删除管理单元"
2.click "添加",选择“服务组件”
3.找到“我的电脑”,click Toolbar上的小电脑图标(配置“我的电脑”)
4.选择tabpage"MSDTC",click "重置日志"
即可在服务中启动DTC。
本以为搞定,运行aspx页面又出现:
ASP.NET Error: Failed to access IIS metabase
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the
current web request.
Please review the stack trace for more information about the error and
where it originated in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException:
Failed to access IIS metabase.
The process account used to run ASP.NET must have read access to the IIS
metabase (e.g. IIS://servername/W3SVC).
Description: An unhandled exception occurred during the execution of the
current web request.
Please review the stack trace for more information about the error and
where it originated in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException:
Failed to access IIS metabase.
The process account used to run ASP.NET must have read access to the IIS
metabase (e.g. IIS://servername/W3SVC).
查些资料,问题得以解决
1.enter into cmd window
2.cd/
3.cd C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727
4.aspnet_regiis -ga administrator //administrator is my user name
5.aspnet_regiis -i -enable
6.net stop iisadmin
7.net start w3svc
如果上述操作还不行,删掉IIS,重新安装后,将上述1-7步再操作一遍!
如果上述操作还不行,删掉IIS,重新安装后,将上述1-7步再操作一遍!