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)

Microsoft business connector dll exception

(0) ShareShare
ReportReport
Posted on by 215

Hi,

I have a .net web application that references Microsoft.Dynamics.BusinessConnectorNet.dll.  I was able to successfully deploy this app on a TEST server which is a 32 bit machine.

I am unable to deploy this app on a 64 bit server. I get the following exception. I am not sure if Businessconnector dll is compatible with a 64bit machine.

Can you please help me resolve this issue. Thanks for your help.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Could not load file or assembly 'Microsoft.Dynamics.BusinessConnectorNet' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Microsoft.Dynamics.BusinessConnectorNet' or one of its dependencies. An attempt was made to load a program with an incorrect format.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Thanks,

Rohini 


 

*This post is locked for comments

I have the same question (0)
  • Denis Patrakov Profile Picture
    on at
    Dynamics AX .NET Business Connector contains both managed code and unmanaged 32-bit x86 code and as such it cannot be loaded by a 64-bit application.
  • Rohini Profile Picture
    215 on at

    Thanks for your reply. I resolved it by adding a 64 bit version of the dll .

  • Community Member Profile Picture
    on at

    I found an other resolution. We moved a AX 4.0 to a new 64 bit server. The IIS was on another server, also 64 bit. And the resolution was to open the application pool, click Advanced Settings on the application pool in question. Set the second option from the top to True (Enable 32-bit Applications).

    Of course this only applies to 32 bit AX installed on a 64 bit server. But solved the problem.

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