Microsoft KB Archive/827659

= You Receive a &quot;DllRegisterServer&quot; Error When You Try to Register a DLL by Using Regsvr32.exe =

Article ID: 827659

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, 64-Bit Datacenter Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows XP Home Edition

-





SYMPTOMS
When you try to register a dynamic-link library (or DLL, or .dll file) by using the Regsrv32.exe command-line tool, the DLL is not registered, and you may receive the following error message:

DllRegisterServer in .dll failed.

Return code was: 0x80070005

Note This behavior does not occur in Windows NT 4.0 or Windows 2000.



CAUSE
This behavior may occur if you try to register a DLL by using Regsrv32 while you are logged on using an account that does not have administrative credentials, such as an account that is a member of the standard users group. An account that does not have administrative credentials cannot write to the registry or change files in the System32 folder.

The behavior occurs because Windows XP and Windows Server 2003 use a more restrictive security scheme than earlier versions of Windows use. This scheme prevents standard users from registering DLLs.

Note Because of this behavior, standard users may not be able to run programs that self-register DLLs by using standard user's ID.



RESOLUTION
To resolve this behavior, log on by using an administrator account, and then register the DLL.



MORE INFORMATION
You can register a DLL by using an account that does not have administrative credentials as long as the DLL does not write to the registry or change files in the System32 folder.

Keywords: kberrmsg kbprb KB827659

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.