Purpose

This article provides a solution for the following error message after upgrading Lasernet:

Assembly containing type Lasernet.license is not referenced. Object 'CLRObject' could not be created


It appears on the clients / computers, when trying to print to Lasernet or when you try to open a Lasernet menu. The issue is that the Lasernet.dll is not replicated correctly from the AOS so it must be regenerated.

Resolution

1. Close all AX applications on the client pc. (DEV, TEST, PRELIVE, LIVE etc.)

2. Open Task Manager and verify on the Process (1) or Details (2) tab (Depending on your Windows version), that there are no AX programs running. Remember to show All Users.


3. End additional AX programs if present.

4. Open File Browser.

5. Locate the folder: C:\Users\usernamexxxxx\AppData\Local\Microsoft\Dynamics Ax\VSAssemblies{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}

6. Rename Lasernet.dll to Lasernet.dll_old


7. Start AX again and it should work now.

8. If you look in the folder again then you will see a new Lasernet.dll file with a new date.


Additional information

It's probably only a couple of users that will get this error. The issue is that the Lasernet.dll is not replicated correctly from the AOS.