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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX 2009 Business connector in ASP.NET Core

(0) ShareShare
ReportReport
Posted on by 722

Hi,

I am creating a project in visual studio using ASP.NET Core Web Application as I want to have JWT authentication. 

Issue started when I add in AX 2009 Business connector and coding in the project.

It give error FileLoadException: Mixed mode assembly is built against version '2.0.50727' of the runtime and cannot be loaded in in the 4.0 runtime without additional configuration information.

Any one having this problem before and please share the solution to this issue. Thanks.

*This post is locked for comments

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

    It's a standard .NET Framework error when you're trying to use an assembly built for .NET Framework 2.0 in a .NET Framework 4.0 application. You can fix it by add useLegacyV2RuntimeActivationPolicy to web.config.

    Note that Business Connector is not a .NET Core library; you must use the full .NET Framework.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans