Error message when you try to start Microsoft Dynamics GP: "eOne.Dynamics.GP.ExcelBuilder.Engine.dll: Exception has been thrown by the target of an invocation"


Symptoms


When you try to start Microsoft Dynamics GP, you receive the following error message:
eOne.Dynamics.GP.ExcelBuilder.Engine.dll: Exception has been thrown by the target of an invocation.

Cause


This problem occurs because the eOne.Dynamics.GP.ExcelBuilder.Engine.dll file conflicts with Microsoft Dynamics GP.

Cause 1

This problem occurs because the eOne.Dynamics.GP.ExcelBuilder.Engine.dll file conflicts with Microsoft Dynamics GP. See Resolution 1.

Cause 2

This problem occurs because SmartList Builder is configured to use the DU3830 dictionary instead of the SLBUILD dictionary in the Dynamics.set file. As an example, the Dynamics.set file line for SmartList Builder will look like this: :C:Program Files/Microsoft Dynamics/GP/DU3830.dic. See Resolution 2.

Resolution


To resolve this problem, use one or more of the following resolutions and methods.

Resolution 1

Method 1

Make sure that the version of the eOne.Dynamics.GP.ExcelBuilder.GPAddin.dll file is the same as the version of the Application.SmartListBuilder.dll file.

To verify the version of the eOne.Dynamics.GP.ExcelBuilder.GPAddin.dll file, follow these steps:
  1. Locate the eOne.Dynamics.GP.ExcelBuilder.GPAddin.dll file.

    By default, the eOne.Dynamics.GP.ExcelBuilder.GPAddin.dll file is located in the following folder:
    C:\Program Files\Microsoft Dynamics\GP\Addins
  2. Right-click the eOne.Dynamics.GP.ExcelBuilder.GPAddin.dll file, and then click Properties.
  3. On the Details tab, note the version of the eOne.Dynamics.GP.ExcelBuilder.GPAddin.dll file.
To verify the version of the Application.SmartListBuilder.dll file, follow these steps:
  1. Locate the Application.SmartListBuilder.dll file.


    By default, the Application.SmartListBuilder.dll file is located in the following folder:
    C:\Program Files\Microsoft Dynamics\GP
  2. Right-click the Application.SmartListBuilder.dll file, and then click Properties.
  3. On the Details tab, note the version of the Application.SmartListBuilder.dll file.

Method 2

Make sure that the Dynamics.set file has the correct number of listed products. To do this, follow these steps:
  1. Locate the Dynamics.set file.

    By default, the Dynamics.set file is located in the following folder:
    C:\Program Files\Microsoft Dynamics\GP
  2. Use Notepad to open the Dynamics.set file.
  3. Note the first number in the file.

    Note This number is the number of products that you have installed. For example, if the number is 20, the Dynamics.set file indicates that 20 products are installed.
  4. Count all the products that are listed in the Dynamics.set file.
  5. Make sure that the number of products is the same as the number that you noted in step 3.

Method 3

Re-create the form dictionary files, and then re-create the report dictionary files. To do this, follow these steps:
  1. Rename any form dictionary files that you changed and any report dictionary files that you changed.

    For example, if you changed the Reports.dic file, rename it to the Reports_old.dic file.
  2. If you do not receive the error message that is mentioned in the "Symptoms" section after you rename the files, re-create the form dictionary files, and then re-create the report dictionary files.
    For more information about how to re-create the Forms.dic file in Microsoft Dynamics GP, click the following article number to view the article in the Microsoft Knowledge Base:
    951767 How to re-create the Forms.dic file in Microsoft Dynamics GP

    For more information about how to re-create the Reports.dic file in Microsoft Dynamics GP, click the following article number to view the article in the Microsoft Knowledge Base:
    850465 How to re-create the Reports.dic file in Microsoft Dynamics GP

    Note If you still receive the error message that is mentioned in the "Symptoms" section after you rename the files, rename the files back to the original names, and then use method 4.

Method 4

If you are not using Excel Report Builder, rename the eOne.Dynamics.GP.ExcelBuilder.GPAddin.dll file. To do this, follow these steps:

  1. Locate the eOne.Dynamics.GP.ExcelBuilder.GPAddin.dll file.


    By default, the eOne.Dynamics.GP.ExcelBuilder.GPAddin.dll file is located in the following folder:
    C:\Program Files\Microsoft Dynamics\GP\Addins
  2. Right-click the eOne.Dynamics.GP.ExcelBuilder.GPAddin.dll file, and then click Rename.
  3. Rename the eOne.Dynamics.GP.ExcelBuilder.Engine.dll file to the eOne.Dynamics.GP.ExcelBuilder.Engine.old file.
  4. Click Yes to accept the file name extension.

Method 5

Reinstall SmartList Builder. To do this, follow these steps.

Step 1: Remove SmartList Builder

  1. Click Start, point to
    Settings, and then click Control Panel.
  2. Double-click Add or Remove Programs, click
    Microsoft Dynamics GP, and then click Change.
  3. In the Program Maintenance window, click Add/Remove Features.
  4. In the Select Features window, expand SmartList Builder, and then click Do not install feature.
  5. Follow the appropriate step:
    • In Microsoft Dynamics GP 10.0, confirm that the folder name in the Install Location field is correct, and then click
      Next.
    • In Microsoft Dynamics GP 9.0, confirm that the folder name in the Install to field is correct, and then click
      Next.
    Note The folder that is specified in the field is the folder in which the changes occur.
  6. In the Install Program window, click
    Install.
  7. When the Installation Complete window appears, click
    Finish.

    When you do this, Microsoft Dynamics GP Utilities starts. If Microsoft Dynamics GP Utilities does not start, click
    Start, point to Programs, point to
    Microsoft Dynamics, and then click GP Utilities.
  8. Log on to Microsoft Dynamics GP Utilities as the sa user.
  9. In the Additional Tasks window, click Launch Microsoft Dynamics GP.
  10. Click Yes when you are prompted to include new code.

Step 2: Reinstall SmartList Builder

  1. Make sure that all users exit Microsoft Dynamics GP.
  2. Back up the DYNAMICS database and the company database. To do this, follow these steps:
    1. Follow the appropriate step:
      • In Microsoft Dynamics GP 10.0, point to
        Maintenance on the Microsoft Dynamics GP menu, and then click Backup.
      • In Microsoft Dynamics GP 9.0, click
        Backup on the File menu.
    2. In the Back Up Company window, enter the company that you want to back up in the Company Name field, enter the location and the file name in the Select the backup file field, and then click OK.
    3. Repeat step b for each company database.
    4. Back up the system database. To do this, click
      System Database in the Company Name field, and then follow the steps that you used to back up the company database.
  3. Click Start, point to
    Settings, and then click Control Panel.
  4. Double-click Add or Remove Programs, click
    Microsoft Dynamics GP, and then click Change.
  5. In the Program Maintenance window, click Add/Remove Features.
  6. In the Select Features window, expand SmartList Builder, and then click Entire feature will be installed on local hard disk drive.
  7. Follow the appropriate step:
    • In Microsoft Dynamics GP 10.0, confirm that the folder name in the Install Location field is correct, and then click
      Next.
    • In Microsoft Dynamics GP 9.0, confirm that the folder name in the Install to field is correct, and then click
      Next.
    Note The folder that is specified in the field is the folder in which the changes occur.
  8. In the Install Program window, click
    Install.
  9. When the Installation Complete window appears, click
    Finish.

    When you do this, Microsoft Dynamics GP Utilities starts. If Microsoft Dynamics GP Utilities does not start, click
    Start, point to Programs, point to
    Microsoft Dynamics, and then click GP Utilities.
  10. Log on to Microsoft Dynamics GP Utilities as the sa user.
  11. In the Additional Tasks window, click Launch Microsoft Dynamics GP.
  12. Click Yes when you are prompted to include new code.

Resolution 2

  1. In Windows Explorer, go to the Microsoft Dynamics GP folder. The default location is C:\Program Files\Microsoft Dynamics\GP.
  2. Right-click the Dynamics.set file and edit in a text editor such as Notepad.
  3. Find the line for the SmartList Builder dictionary that is incorrect. For example: :C:Program Files/Microsoft Dynamics/GP/DU3830.dic.
  4. Edit the line to be the correct dictionary filename. For example: :C:Program Files/Microsoft Dynamics/GP/SLBUILD.dic.