Microsoft KB Archive/168054

= PRB: "Cannot activate OLE Server" or "Moniker cannot open file" =

Article ID: 168054

Article Last Modified on 5/12/2003

-

APPLIES TO

 Microsoft Visual FoxPro 3.0 Standard Edition, when used with:  Microsoft Windows NT 4.0

 Microsoft Windows 95  Microsoft Visual FoxPro 3.0b Standard Edition, when used with:  Microsoft Windows NT 4.0

 Microsoft Windows 95</li></ul> </li> Microsoft Visual FoxPro 5.0 Standard Edition, when used with:  Microsoft Windows NT 4.0</li></ul>

 Microsoft Windows 95</li></ul> </li> Microsoft Visual FoxPro 5.0a, when used with:  Microsoft Windows NT 4.0</li></ul>

 Microsoft Windows 95</li></ul> </li> Microsoft Visual FoxPro 6.0 Professional Edition, when used with:  Microsoft Windows NT 4.0</li></ul>

 <li>Microsoft Windows 95</li></ul> </li> <li>Microsoft FoxPro 2.6a Standard Edition, when used with: <ul> <li>Microsoft Windows NT 4.0</li></ul>

<ul> <li>Microsoft Windows 95</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q168054

<div class="symptoms_section">

SYMPTOMS
When double-clicking to edit an object stored in a General field, one of the following error messages is displayed:

"Cannot activate OLE Server"

-or-

"OLE error code 0x800401ea: Moniker cannot open file"

<div class="cause_section">

CAUSE
The linked file has been deleted, renamed, moved, or may be damaged.

<div class="resolution_section">

RESOLUTION
If the file has been renamed or moved, open the general field, but do not double-click the OLE object. Select "Links" from the Edit menu, then click "Change Source" to point to another file or update the link.

<div class="status_section">

STATUS
This behavior is by design.

<div class="moreinformation_section">

Steps to Reproduce Behavior
<ol> <li>Create a table with a general field.</li> <li>Add a new record.</li> <li> In the command window issue the following command: APPEND GENERAL FROM "C:\Windows\Cars.bmp" LINK -or-

Select Insert Object from the Edit menu. Click "Create from File," check the Link box, and then click on the Browse button to find the file. </li> <li>Rename Cars.bmp to xxxxcars.bmp.</li> <li>Open the general field and double-click the image.</li></ol>

NOTE: In step 5 above, once the file is renamed or deleted, FoxPro may select an adjacent file in the folder in which the original file was located, therefore it will not produce an error but will display the incorrect file.

Keywords: kbinterop kb3rdparty KB168054

-

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

© Microsoft Corporation. All rights reserved.