ASP.NET的折磨

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).

查些资料,问题得以解决

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步再操作一遍!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值