PRB: Version Compatibility of OLE ServersLast reviewed: May 2, 1996Article ID: Q143042 |
The information in this article applies to:
SYMPTOMSWhen distributing an update to an OLE server you may receive the following error when accessing the server with an existing OLE client:
Run-time error '-2147319765 (8002802b)': Ole Automation error Element not found. CAUSEVersion compatible is when objects and/or methods have been added to the type library, but no changes have been made to existing properties. Version identical is when interfaces are the same such that the type library is exactly the same as the old version. Making an update to an OLE server, which is version compatible but is not version identical, causes this error.
RESOLUTIONYou must recompile the OLE client with the reference to the updated OLE server and redistribute the OLE client.
MORE INFORMATIONPrior to following this example, make sure you have built the OLE server and OLE client. For additional information on building OLE clients and servers, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q129801 TITLE : How to Create and Use a Minimal OLE Automation Server Phase One - Modify the ClientYou will have to make the following modifications to the OLE client project:
Phase Two - Modify the ServerModify the server to make a version compatible but not version identical server. This will involve changing the OLE interface by simply adding a method to the class module.
Phase Three - Test the OLE Client
Phase Four - Fix the OLE ClientIn order to make the OLE client execute properly again it will have to be recompiled referencing the updated OLE server.
|
Additional reference words: 4.0 vb4win vb4all OLE version compatibility
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |