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)

Error with DLL file Microsoft.Dynamics.AX.ManagedInterop

(0) ShareShare
ReportReport
Posted on by

Hi all. I have one task that setup a system using WCF to import/export data from AX 2012 R3. But when i run this system , i got an error : "Could not load file or assembly ' , Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was made to load a program with an incorrect format." How can i resolve this problem, it's happen when i try to export Data . Many thanks

*This post is locked for comments

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

    What do you mean by "this system"? The .NET application calling AX web services via WCF? If so, why are you trying to load Microsoft.Dynamics.AX.ManagedInterop assembly there?

  • Community Member Profile Picture
    on at

    ya, our system use WCF framework to communicate .It's include 5 app . This 's error occur when our system try to export Data from AX via AIF. I don't know why it's happen

  • Jie G Profile Picture
    on at

    Hi Lindsey,

    The Assembly Binding Log Viewer displays details for assembly binds. This information helps you diagnose why the .NET Framework cannot locate an assembly at run time.

    Please refer: https://docs.microsoft.com/en-us/dotnet/framework/tools/fuslogvw-exe-assembly-binding-log-viewer

  • Community Member Profile Picture
    on at

    Thank Ada Ding for your link. But  i see nothing from log ==! empty screen

  • Martin Dráb Profile Picture
    237,831 Most Valuable Professional on at

    Make sure you configured the log viewer correctly (as admin) and reproduced the problem.

    But you really should find out which of your five apps is throwing this error and whether it should try to load this assembly at all. If is shouldn't, you should remove the dependency.

  • Community Member Profile Picture
    on at

    Thank Martin . I know which app get this error. This system have one WCF Service controll everything, one app call WCF Client to import/export data from AX .  But where is error come from ? my dll file? I'm not dev this system. The whole system come from my guest and he sent to me to setup them on.

  • Martin Dráb Profile Picture
    237,831 Most Valuable Professional on at

    I can't tell *you* where it's coming from, that's what I want you to find. I have no access to your system.

    If you say you know which application it is, then think about whether it should be loading Microsoft.Dynamics.AX.ManagedInterop. It shouldn't be loaded into any application except of AX, as far as I can say.

  • Community Member Profile Picture
    on at

    Ya . Combine with this app are lots of dll file. And Microsoft.Dynamics.AX.ManagedInterop inside this app folder too. What is Microsoft.Dynamics.AX.ManagedInterop stand for?  I'm sorry because of our policy, i really want you to access my server  

  • Martin Dráb Profile Picture
    237,831 Most Valuable Professional on at

    Well, why anybody included this assembly in the first place? You should merely call AX web services, not including AX libraries in your application, right?

    It's used for some interoperability between native AX objects and managed (.NET) objects, which you shouldn't need in your scenario and therefore you should remove it. I suggest you review your "lots of dll files" and keep only what's actually needed. Solving problems caused by components that shouldn't ever be there is a waste of time.

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans