Microsoft KB Archive/163785

= FIX: "Error Instantiating Application Object" on Windows NT =

Article ID: 163785

Article Last Modified on 10/15/2003

-

APPLIES TO


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

-



This article was previously published under Q163785



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) Log on as Administrator.
 * 2) From the Start menu, select Programs, choose Administative Tools then click User domain to get to the Guest User account.
 * 3) Move the Guest user account into the Administrators group temporarily.
 * 4) Move the Guest user account into the Administrators group temporarily.
 * 5) Log on as the Guest user.
 * 6) Install Visual FoxPro or the EXE while logged on as the Guest user.
 * 7) Run Visual FoxPro. From the Tools menu, select Options, and then choose the "Set As Default" button.
 * 8) Log in as the Administrator and remove "Guest" from the Administrators group.

This allows all new users to the computer 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.

Keywords: kbbug kbfix kbvfp500afix kbsetup KB163785

-

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

© Microsoft Corporation. All rights reserved.