[解决方案]拒绝访问。 (异常来自HRESULT:0x80070005 (E_ACCESSDENIED))

本文介绍了解决ASP.NET应用程序中出现的DCOM权限错误的方法。通过调整Windows Management Instrumentation的安全设置,并添加ASPNET用户权限,可以有效解决此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

【出现问题】

    看ASP.net视频时敲例子出现了如题所示的错误:

 

 

解决方案

1. Run dcomcnfg to bring up Component Services window.

2. Expand Component Services > Computers > My Computer > DCOM Config

3. Scroll down list, right click Windows Management and Instrumentation, and select properties. A 5 tabbed window named Windows Management and Instrumentation Properties should be displayed.

4. Select the Security tab, then select radio buttons which activate the Edit... buttons.

5. Select the appropriate location and add the ASPNET account.

6. Reboot.

 

简单一点就是:

1) 运行dcomcnfg

2) 点击 组件服务->服务->电脑->我的电脑->DCOM 配置

3) 找到“Windows Management and Instrumentation”,右击属性--安全--编辑--ASPNET用户权限添加进去

4) 重启电脑

 

 

 

 

 

 


评论 17
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值