FIX: "Error Instantiating Application Object" on Windows NT

Last reviewed: January 22, 1998
Article ID: Q163785
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 5.0 on the following platform: NT

SYMPTOMS

The error message, "Error Initializing Application Object" or "Error Instantiating Application Object," may occur when starting Visual FoxPro on a Windows NT machine (Workstation or Server). The error will occur if you have logged onto NT without administrator rights.

CAUSE

When you install Visual FoxPro or an EXE created with Visual FoxPro on Windows NT, you must be an administrator of that machine. If, after the initial installation, you log on as a user without administrator rights, Visual FoxPro will look in the registry for specific keys but will not find them because the administrator's registry keys will not be copied to all types of users on the machine. When Visual FoxPro does not find the registry keys, it displays the error message:

   Error Instantiating Application Object

   -or-

   Error Initializing Application Object


RESOLUTION

To allow other users to log on to the Windows NT machine and gain access to Visual FoxPro:

  1. Move the Guest user account into the Administrators group temporarily.

  2. Log on as the Guest user.

  3. Install Visual FoxPro or the EXE while logged on as the Guest user.

  4. Run Visual FoxPro. From the Tools menu, select Options, and then choose the "Set As Default" button.

  5. Log in as the Administrator and remove "Guest" from the Administrators group.

This will allow all new users to the machine to get the Visual FoxPro Icons and correct registry settings.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0a.


Additional reference words: 5.00
Keywords : buglist5.00 FxenvOs vfoxwin vfpfix5.0a kbsetup kbbuglist kbfixlist
Version : 5.0
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbfix


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: January 22, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.