web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

DLL Missing Reference

Christian Silva Profile Picture Christian Silva 707

Today I decided to post about DLL that are missing reference after seeing many people who tried to follow the same solution posted on many blogs and none of them worked.
So, here is my problem, many classes are unable to compile due to Syntax error.

5-2-2015-3-50-44-AM

Looking further, the error occurs because AX can’t find the reference Symmetry.TaxEngine.
5-2-2015-3-50-28-AM1I tried to resolve by adding again the reference ste-net.dll, but that didn’t work. Here is in-depth guide explaining how I resolved it:

1. Open Visual Studio Command Prompt as administrator and type fuslogvw.

Image2. It will open the Assembly Binding Log Viewer, click in Settings.

Image3. Select the option Log all binds to disk and Enable Custom log path. Set the custom patch to C:\temp.
Image4. Close the Assembly binding log viewer go to Services and stop the AOS.

5. Go to C:\Program Files\Microsoft Dynamics AX\60\Server\instance_name\bin and delete the folder XppIL.

6. Go to Services, start the AOS and open AX Client, since we deleted the folder XppIL it might take some time to start the service.

7. Open Visual Studio Command Prompt as administrator and type fuslogvw again, check if it has new entries:
Image8. Go to C:\Temp\Default\AX32.exe, the log we are looking starts with ste-net. Open it.

9. Check if there is any warning or error, here what I found on mine:

WRN: Comparing the assembly name resulted in the mismatch: Revision Number
ERR: The assembly reference did not match the assembly definition found.
ERR: Run-from-source setup phase failed with hr = 0x80131040.
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated

Looking before it I found:

LOG: Redirect found in application configuration file: 1.0.1.67 redirected to 1.0.1.74.
LOG: Post-policy reference: ste-net, Version=1.0.1.74, Culture=neutral, PublicKeyToken=5542884f620dbde5

In my case, the system were expecting the DLL version 1.0.1.74. and instead it found the version 1.0.1.67. Because of that the assembly has failed to load.
Looking the web I found correct DLL version which can be downloaded here. Now to install it follow the below steps.

10. Copy the ste-net.dll which we have downloaded to the following folders:

C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin\
C:\Program Files\Microsoft Dynamics AX\60\Server\instance_name\bin\

11. On Microsoft Dynamics AX, open AOT, go to Referencesand then Add reference.
Image12. Click in Browse… and select the ste-net.dll.Image

13. It will appear the DLL information, if thats the right DLL click in OK.

14. Open Visual Studio Command Prompt as administrator and type the following commands:

gacutil /i "C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin\ste-net.dll"
gacutil /i "C:\Program Files\Microsoft Dynamics AX\60\Server\instance_name\bin\ste-net.dll"

Image15. On Visual Studio Command Prompt type fuslogvw and click on Delete All to clean all the entries.Image16. Now close the AX client, restart AOS and open AX client again.

17. Check the folder C:\Temp\Default\AX32.exe and open the file ste-net, Version=1.0.1.74, Culture=neutral, PublicKeyToken=5542884f620dbde5.htm.

18. Check the log and find the results, here is mine:

LOG: Binding succeeds. Returns assembly from C:\Windows\assembly\GAC_32\ste-net\1.0.1.74__5542884f620dbde5\ste-net.dll.
LOG: Assembly is loaded in default load context.

Looks like the problem is resolved and the assembly loaded successfully!

19. Compile any class with errors and do a full compile CIL.

That’s it guys, the first time might seem complicated but this really helps and can be used to resolve any missing reference problems. Enjoy it!



This was originally posted here.

Comments

*This post is locked for comments