Thursday, February 15, 2018

Assembly containing type xxx is not referenced

This post probably gives an idea when you found the problem 'Assembly containing type .... is not referenced'.

--- I am not .NET expert, so my explanation might not accurate and complete, also correct me if I misunderstand 😆---

=== Background ===
While I am setting the new ax environment after importing some code (customizing module) I got this message.














For my case, there is a class which calls a .NET object (written in C# project kept in AOT). The message tells us the .NET is NOT referenced (In other words, means not found).


=== Solution ===

  • Compile the calling class and .NET object (in AOT) - make sure it all passed
  • Generate incremental (or full) CIL- make sure it all passed
  • Edit C# project in Visual Studio 
  • In VS, apply these all actions - make sure it all passed
    • Add to AOT
    • Build
    • Deploy
  • If you get these message, then enable hot-swap feature in ax 2012 server configuration











After that complete the activities in VS again, then check the result again in ax. It should work then!