Views:

Symptoms
When you try to start Microsoft Dynamics GP, you may experience the following problem. When you click OK in the Company Login dialog box, Microsoft Dynamics GP exits unexpectedly without an error message. Or, Microsoft Dynamics GP exits unexpectedly, and you receive the following error message instead:
Application must close.
Cause
This problem occurs if the following conditions are true:

  • Named printers are enabled on the computer on which you are trying to start Microsoft Dynamics GP.
  • One of the following conditions is true:
    • The default printer for the System task series no longer exists. Or, the default printer for the Company task series no longer exists.
    • The printer drivers have been changed for the default printer for the System task series or for the default for the Company task series. Or, the printer drivers are not valid.

When you start Microsoft Dynamics GP, the default printer for Microsoft Dynamics GP is changed to the default printer for the System task series in the Named Printers Options window.
Resolution
To resolve this problem, temporarily disable named printers on the computer so that the default printer for Microsoft Dynamics GP is not changed when you start the program. Next, start Microsoft Dynamics GP, and then set up named printers correctly. After you do this, enable named printers. To do this, follow these steps:

  1. Double-click the Dex.ini file.
  2. In the file, locate the following line:

ST_SetDefault=TRUE

  1. Change the value of the ST_SetDefault parameter to FALSE.
  2. Save the changes, and then close the file.
  3. Start Microsoft Dynamics GP.
  4. On the Tools menu, click Setup, click System, and then click Named Printers.
  5. Change the settings for the default printer for the System task series so that you specify a printer that exists.
  6. Change the settings for the default printer for the Company task series so that you specify a printer that exists.

    Note This step is optional. You only have to do this if a default printer for the Company task series is already set up.
  7. Exit Microsoft Dynamics GP.
  8. Double-click the Dex.ini file.
  9. Change the value of the ST_SetDefault parameter to TRUE.
     

Note You can temporarily disable named printers by putting a semicolon in front of the ST_MachineID= setting in the Dex.ini file instead of setting the ST_MachineID= setting to FALSE.