Article ID: 305746 - Last Review: February 12, 2007 - Revision: 4.3 BUG: "Access Denied" Error Message in Response to DCOM Activation for ATL-Built COM ServersThis article was previously published under Q305746 SYMPTOMS
DCOM activation for Active Template Library (ATL)-built COM servers may fail with the following error message:
0x80070005 (E_ACCESSDENIED)
CAUSE
This behavior can occur if there is a short-file-name versus long-file-name conflict in the registry. COM servers are registered under the HKEY_CLASSES_ROOT\AppID key in a named value that indicates the module name (such as OUROLEAPP.EXE). This type of named value is REG_SZ, and it contains the string representation of the AppID associated with the executable. This mapping is used to obtain the default access permissions and authentication level. An ATL server with a long file name is registered under the CLSID\LocalServer32 key with a short file name (OUROLE~1.EXE). However, when the Dcomcnfg utility creates the mapped executable name for the server in the registry that points to the actual AppID key of the server, it uses the long file name (OUROLEAPP.EXE). RESOLUTION
To work around this issue, use either of the following methods:
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
201318
(http://support.microsoft.com/kb/201318/EN-US/
)
Registering ATL Server with Long Name Causes 0x80070002
APPLIES TO
| Article Translations
|
Back to the top
