PRB: "Cannot activate OLE Server" or "Moniker cannot open file" (168054)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0, when used with:
    • the operating system: Microsoft Windows NT
    • the operating system: Microsoft Windows 95
  • Microsoft Visual FoxPro for Windows 3.0b, when used with:
    • the operating system: Microsoft Windows NT
    • the operating system: Microsoft Windows 95
  • Microsoft Visual FoxPro for Windows 5.0, when used with:
    • the operating system: Microsoft Windows NT
    • the operating system: Microsoft Windows 95
  • Microsoft Visual FoxPro for Windows 5.0a, when used with:
    • the operating system: Microsoft Windows NT
    • the operating system: Microsoft Windows 95
  • Microsoft Visual FoxPro for Windows 6.0, when used with:
    • the operating system: Microsoft Windows NT
    • the operating system: Microsoft Windows 95
  • Microsoft FoxPro for Windows 2.6a, when used with:
    • the operating system: Microsoft Windows NT
    • the operating system: Microsoft Windows 95

This article was previously published under Q168054

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"

CAUSE

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

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.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a table with a general field.
  2. Add a new record.
  3. In the command window issue the following command:
          APPEND GENERAL <field> 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.
  4. Rename Cars.bmp to xxxxcars.bmp.
  5. Open the general field and double-click the image.
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.

Modification Type:MajorLast Reviewed:5/12/2003
Keywords:kb3rdparty kbinterop KB168054