PRB: Run-Time Error -2147286789 When You Use UDL File to Open ADO Connection (296853)
The information in this article applies to:
- Microsoft OLE DB 2.0
- Microsoft OLE DB 2.1
- Microsoft OLE DB 2.5
- Microsoft OLE DB 2.6
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.1 SP1
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP3
- Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP4
- Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP5
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
This article was previously published under Q296853 SYMPTOMS If you try to open an ADO connection using a data link file
(which is commonly referred to as a universal data link file, or UDL file), you
may receive the following error message: Run-time error
-2147286789(800300fb): The File is not a valid compound file
CAUSE There are two causes for this behavior:
- The database connection information in the UDL file is in
an invalid format.
- The UDL file may be corrupted.
RESOLUTION To resolve this problem, use one of the following methods:
- In the OLE DB Data Link Properties dialog
box, re-create the UDL file.
- In Notepad, open the UDL file manually to verify its format
and make any required changes. For additional information, see the "More
Information" section.
REFERENCESFor additional information, click the article numbers below to
view the articles in the Microsoft Knowledge Base: 189680 HOWTO: Use Data Link Files with ADO
286189 HOWTO: Invoke OLE DB Data Link Properties Dialog Box in Visual Basic Code
283245 HOWTO: Persist Data Links Programmatically
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbprb KB296853 |
---|
|