OFFXPDEV: Error Starting Run-Time Application with a Custom Profile (291034)



The information in this article applies to:

  • Microsoft Office XP Developer

This article was previously published under Q291034

SYMPTOMS

When you start a Microsoft Access 2002 run-time application, you receive the following error message:
The profile <Profile Name> that you specified on the command line doesn't exist in the Windows Registry.
The run-time application then starts without using the specified profile.

CAUSE

You entered a trailing space in the Profile Name text box of the packaged application. The Packaging Wizard does not automatically trim trailing spaces in the Profile Name text box.

RESOLUTION

Run the Packaging Wizard and remove the trailing space in the Profile Name text box on the Profile tab of the Start Menu Item Properties dialog box. Then repackage the application.

To correct the problem with a run-time application that has already been installed, modify the application's shortcut on the Windows Start menu to remove the extra space from the profile name.

For example, change the /Profile portion of the command line string from

/Profile "Test Profile "

to:

/Profile "Test Profile"

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Start the Packaging Wizard from the Windows Start menu.
  2. On the Identify Application and Package page, type the path to the sample database Northwind.mdb as the application's main file.
  3. Click Next until you reach the Dependencies page.
  4. Click Add File.
  5. Select a Microsoft Access workgroup file (System.mdw) to include with the application, and then click Open.
  6. Click Next until you reach the Define Start Menu Shortcuts page.
  7. Click the Northwind shortcut node, and then click Properties to open the Start Menu Item Properties dialog box.
  8. Click the Database tab.
  9. Click to select the Workgroup database command line option, and then click System.mdw from the drop-down list.
  10. Click to select the Profile database command line option.
  11. Click the Profile tab, and then type Test Profile  in the Profile Name text box. Be sure there is a trailing space at the end of the name.
  12. Click OK to close the dialog box.
  13. Click Next until you reach the Build the Application Package page.
  14. Click Finish to build the package.
  15. Run Setup for the package on another computer.
  16. Start the Northwind sample application from the Windows Start menu.
Note that you receive the error message that is mentioned in the "Symptoms" section of this article.

Modification Type:MajorLast Reviewed:5/9/2001
Keywords:kbbug kberrmsg KB291034