Microsoft KB Archive/171456

= PRB: Run-time error -2147023071 (80070721) using WithEvents =

Article ID: 171456

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Control Creation Edition
 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q171456



SYMPTOMS
When using an ActiveX component that defines events, you may receive the following error when this component is accessed through DCOM.

Run-time error -2147023071 (80070721)

Automation Error

This error does not occur if the ActiveX component is used locally or if the client does not instantiate the remote object using the WithEvents statement.



CAUSE
This problem occurs because you did not set the appropriate identity for the server.



RESOLUTION
To resolve this problem, refer to the following articles in the Microsoft Knowledge Base:

267836 HOWTO: Create a DCOM Client/Server with Events by Using Visual Basic

268550 HOWTO: Use Dcomcnfg for a Visual Basic DCOM Client/Server Application

269330 HOWTO: Troubleshoot DCOM for Visual Basic Client/Server Applications

Additional query words: -2147023071 (80070721)

Keywords: kberrmsg kbprb KB171456

-

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

© Microsoft Corporation. All rights reserved.