This article provides a solution to the compilation error: "Variable LasernetPrinter has not been declared".
This compile error occurs due to either DLL file(s):
- being unavailable on the AOS server.
- missing on the AX client.
Therefore DLL files must be deployed to the AOS server and AX client.
Resolution
The following DLL files needs to be in the AOS server and clients Bin folder in order to compile correctly.
- LasernetEvent.dll
- LasernetPrinter.dll
- LasernetPrinter.Data.dll
If this doesn't work you can try to deploy manually from the AX client. Please follow these steps to do so:
1. Right-click AX client and select "run as administrator".
2. Select Lasernet > Setup > Resource deployment.
3. Select Deploy resources > Deploy resources.
If the above fails, you will get an Infolog.
The image below shows an example of DLL file(s) missing from the AOS server:
If all the above fails, you can try to copy the DLL file(s) manually.
1. Right-click AX client and select "run as administrator".
2. Select Lasernet > Setup > Resource deployment.
3. Select the DLL file one by one and click on the Download resource button.
4. Stop the AX client and the AOS server.
5. Copy the DLL files into their Bin folders e.g.:
C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\Bin\
C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin
Problems with the DLL files are normally due to missing user rights to the Bin folder e.g. on the client if you are not a local admin.
Add a comment
Please log in or register to submit a comment.