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

Last reviewed: May 6, 1997
Article ID: Q168054
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a on the following platforms: NT, Win95
  • Microsoft FoxPro for Windows, version 2.6a on the following platforms: NT, Win95

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.


Keywords : FxinteropOle kb3rdparty kbinterop vfoxwin kbprb
Technology : kbole
Version : 2.6a 3.0 3.0b 5.0 5.0a
Platform : NT Win95 WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.