This article provides a solution for the following error message which may appear in AX 2012:
Exception has been thrown by the target of an invocation.
This error may occur if you try to select Lasernet Screen or Lasernet within the Printer setup menu when trying to print a document.
This error happens when the system is trying to use a Lasernet printer incorrectly.
Please follow these steps to resolve the error:
1. Within Printer setup, select the standard AX Printer option, and within Name, select a non-Lasernet printer.
2. Select Lasernet or Lasernet Screen and then print the document by pressing Ok.
In the picture below we have selected an HP printer:
If the issue persists or if you do not have the option to select the standard AX Printer option, check the default printer within Windows.
Go to Control Panel > All Control Panel Items > Devices and Printers and set a non-Lasernet printer as the default printer.
In the picture below we selected an HP printer, not Lasernet Print Capture or Lasernet Reference Printer: