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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Dynamics AX 2012 R3 with Business Adapter in dotnet core 3.1 or 6

(0) ShareShare
ReportReport
Posted on by 5

We are going to update the API used to talk with Dynamics AX from SOAP to a rest api. Doing this we would like to be able to use dotnet core 6 to piggyback on the company sdk. I'm not an ax developer so I'm sorry if the lingo isn't correct.

Tried to use the nuget AxBusinessConnector from ms and I can see .net v2.0 dependency. I've also tried from the machine that has the business adapter installed to export all dll;s from the GAC to grab a x64 version for my project of the 'Microsoft.Dynamics.BusinessConnectorNet.dll'.

When running the project and try to use 'Axapta' class it throws error "System.TypeLoadException: 'Could not load type 'System.Web.HttpContext' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral"

I guess the issue is that the BusinessConnector from ms is based on .net v2.0? Is there a newer version somewhere that can support dotnet core?

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    No, there is no support for .NET Core. Also, Business Connector is deprecated and it shouldn't be used anymore

    It seems to me that you're causing the whole problem to yourself by trying to use Business Connector instead of web services.

    Let me suggest a different architecture. Create a Web API application on .NET Core that will expose the REST API as requested. Instead of trying to use Business Connector, let this app call WCF web services provided by AX (document services and/or custom services). Therefore it'll basically translated REST calls to SOAP calls.

  • tjomo Profile Picture
    5 on at

    I've looked a little on this solution. Sadly we are using a lot of static functions that the 'rest api' is supposed to call. As of my understanding the WCF web service (auto generated soap?) is only used to read/write to tables?

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    Maybe you should explain what you mean by "to update the API used to talk with Dynamics AX from SOAP to a rest api". My understanding was that you're currently using SOAP services of AX and you just wanted to use a REST API instead of SOAP. Is it true? If so, then it's strange to  suggest that the services that you are currently using doesn't allow you to do what you need.

    Also, you're wrong in thinking that that web services offered by AX 2012 allow you just to read and write to tables. As I mentioned, there several types of services. If you want to call method of AX classes, use custom services.

    Document services allow CRUD operations, but they don't operate on tables directly. They use document classes and you can put business logic to these classes.

  • Suggested answer
    tjomo Profile Picture
    5 on at

    Yes. Now I think I understand.

    1. With the classes we have in Dynamics AX set attribute for custom services. learn.microsoft.com/.../using-custom-services

    2. Create incoming port for tcp.net and pick the 'custom services'

    3. Visual Studio connect Service with the url, it will create base classes to call the endpoint.

    Figure out how to use it and how to set security.

    Now we are not using any of the old deprecated tech. Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 468 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans