大网数据广告活动
Web服务器与PHP

Error ASP 0178 when you instantiate COM object

· 52CE 我爱测

This article provides resolutions for the ASP 0178 error that occurs when you instantiate COM object.

This article helps you resolve the 'ASP 0178' error that occurs when you instantiate COM object.

Original product version:   Internet Information Services
Original KB number:   198432

Symptoms

When instantiating a COM component in an Out-Of-Process Server (EXE) from Active Server Pages (ASP), the following error may occur:

Server object error 'ASP 0178 : 80070005'
Server.CreateObject Access Error
testOOP.asp, line 12
The call to Server.CreateObject failed while checking permissions.
Access is denied to this object.

Cause

Appropriate permissions to access and launch the Out-Of-Process (OOP) COM object has not been set.

Resolution

You need to give the IUSR_<machine_name> account permissions to launch and access your OOP COM object using dcomcnfg by doing the following:

  1. Launch DCOMCNFG by clicking the Start button, selecting Run, and typing Dcomcnfg in the Run dialog box.

  2. In the Default Security tab, click the Edit Default in the Default Access Permissions frame. The Registry Value Permissions dialog box appears.

  3. Add the IUSR_<machine_name> account and the INTERACTIVE account to the Registry Value Permissions dialog box, and click OK.

  4. In the Default Security tab, click the Edit Default in the Default Launch Permissions frame. The Registry Value Permissions dialog box appears.

  5. Add the IUSR_<machine_name> account to the Registry Value Permissions dialog box, and click OK.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 09/24/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。