Microsoft KB Archive/291034

= OFFXPDEV: Error Starting Run-Time Application with a Custom Profile =

Article ID: 291034

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Office XP Developer Edition

-



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  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 &quot;Test Profile &quot;

to:

/Profile &quot;Test Profile&quot;



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



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 &quot;Symptoms&quot; section of this article.

Additional query words: pra

Keywords: kbbug kberrmsg kbnofix KB291034

-

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

© Microsoft Corporation. All rights reserved.