PRB: Run-time error -2147023071 (80070721) using WithEvents (171456)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
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
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kberrmsg kbprb KB171456 |
---|
|