Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2023 Release Wave 1Check out the latest updates and new features of Dynamics 365 released from April 2023 through September 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Hi I cannot add a dll into the AOT-resource in my Axapta4.0 installation.
I get the ClrObject static method invocation error when system call the GetAssemblyName method
Any suggestions or ideas
What can you tell us about the DLL? For example, it's is a .NET assembly at all? For which version of .NET framework? For which processor architecture?
How are you using the file? Where and why are you calling GetAssemblyName()?
it's a .net assembly (messagingtoolkit.QrCode) Version I am not sure.
I do not use the file because it fails to add it as reference in AX. The GetAssemblyName is called when adding it to the reference and it fails. Thats why I cannot add it (exception thrown)
All right, please find out the missing information. It's likely that you're trying to import an incompatible assembly. Don't forget that AX 4.0 is thirteen years old; it uses .NET Framework 2.0. You can simply put modern assemblies there and expect that AX 4.0 will know how to work with them.
you are right its from 2012 and uses .net 3.5
So I have to find another way to create QR Code from AX4
I found a .net copiled QRCode DLL.
I can add it to the AOT-resource but later (trying to initialize it in the code) I get an error that it cannot be loaded
Error loading Assembly ThoughtWorks.QRCode, Version=1.0.2774.19990, Culture=neutral, PublicKeyToken=null
Do I have to add all used libraries in the QRCode as well?
Yes, it the assembly requires other assemblies that aren't installed in the system, its loading will fail. It can't work without assemblies it depends on.
Business Applications communities