Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 release wave 1Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
To over come a error "Invalid attempt to call to FormJsonSerializer.serializeClass running in CIL on the client" ii have changed the code from
public static client str serializeClass(Object _object) to public static server str serializeClass(Object _object).
Now i am facing error as "Assembly containing type Newtonsoft.Json.JsonTextWriter is not referenced. & Object 'CLRObject' could not be created" while doing integration from AX to third party.
Can anyone please help me to solve the issue.
AX 2012 doesn't seem to contain FormJsonSerializer class. Is it your attempt to backport if from D365FO?
Did you add a reference to Newtonsoft.Json to AOT and did you install the assembly on AOS? Also, if you're running the thing in CIL, did you generate CIL?
Yes we have back port it from D365. Added Newtonsoft.Json reference to AOT,done Full CIL.
Does assembly on AOS means adding DLL file in Bin folder? If so i have done it.
Yes, putting the DLL to the bin folder is one of the options.
You must put to server bin run your code on server. But you also need it on client if you want to compile your code (because compilation happens on client), even if you don't intended to run your code there.
I have placed the dll file in both server and client bin. But we still facing the error.
Please give us more information. Does it compile? Does creating an instance work in X++ on server? I assume you're currently running it in CIL, as you mentioned a CIL-related error.
Can't the DLL be for a different version of .NET Framework? (I don't remember how they release it.)
There is no compilation errors and it is throwing same error when it runs on server.
Hmm, you may run both X++ and CIL on server. Which case you're talking about right now?
I am taking about X++.
Verify that the file is in server bin. Verify the target processor architecture (I doubt it's the problem, but it's good to be sure that it isn't). Then you can use Assembly Binding Log Viewer to find more details about why the assembly can't be loaded.
I removed reference in AX and rebuild everything in scratch but still facing same error in FormJsonSerializer.new method.
private void new()
stringWriter = new System.IO.StringWriter();
jsonWriter = new Newtonsoft.Json.JsonTextWriter(stringWriter); ----- Facing error at this point
nullPlaceholder = guid2str(newGuid());
dateTimeBase = FormJsonSerializer::dateTimeBase();
Please help i am stuggling for past one week.
Business Applications communities