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 :
Microsoft Dynamics AX (Archived)

AOS Cannot load assemblies - AX2012 R2

(0) ShareShare
ReportReport
Posted on by 4,074

Both of our AOS servers are throwing a bunch of errors when starting up, such as:

Object Server 01:  Could not load assembly 'Microsoft.Dynamics.Retail.MatrixPivotGrid, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Object Server 01:  Could not load assembly 'Microsoft.Dynamics.AX.Framework.Analytics, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Object Server 01:  Could not load assembly 'Microsoft.Dynamics.AX.Framework.Client.Controls, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Object Server 01:  Could not load assembly 'Microsoft.Dynamics.AX.Frameworks.ProductConfiguration, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Object Server 01:  Could not load assembly 'Microsoft.Dynamics.Kernel.Client, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Object Server 01:  Could not load assembly 'Microsoft.Dynamics.AX.Framework.Workflow.Metadata.Wizard, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Object Server 01:  Could not load assembly 'Microsoft.Dynamics.AX.Framework.Workflow.Model.Design, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Object Server 01:  Could not load assembly 'Microsoft.Dynamics.Retail.StoreConnect.MessageTreeControl, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Object Server 01:  Could not load assembly 'RetailControls, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Object Server 01:  Could not load assembly 'Microsoft.Dynamics.Retail.StoreConnect.TransAutomClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86' or one of its dependencies.

Could not load assembly 'EInvoiceCFDI_MX.dll.config' or one of its dependencies.

Object Server 01:  Could not load assembly 'ElectronicFiscalDocument_BR.dll.config' or one of its dependencies.

 

 

What's with that?  The 'Microsoft.Dynamics.AX.Framework.Analytics one is preventing me from setting up an Analysis server in AX and deploying the cubes.  I checked the dll's dependencies and it was missing the Microsoft.AnalysisServices.DLL from the GAC on the AOS.  I stole this from the Analysis server where SQL Analysis services was actually installed and added it to the GAC which I'm hoping resolves the issue.  But why in the world would all these DLL's that the AOS requires not be installed with the AOS, or at least be part of the validation of requirements for it? 

The AnalysisServices dll is the only one I was able to resolve... I have no idea how to resolve the dll issues going on.  Any advice?   This is a server only running the AOS, and was upgraded from AX 2012 CU3 to AX 2012 R2.  Prior to installing R2, I uninstalled everything related to AX from the server and started clean. 

 

*This post is locked for comments

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

    The assemblies seem to be client-based, not AOS-based. I would try to reinstall AX client as the first thing.

    You can also try to get more details about the problem by using Assembly Binding Log Viewer.

  • Andy Adamak Profile Picture
    4,074 on at

    That's interesting.  I restarted the AOS after adding the Microsoft.AnalysisServices.dll to the GAC, and all my problems related to analysis services in AX went away... I did nothing client side.  Perhaps AX looks for required assemblies on the client, and if they are not found defaults back to the AOS?  

    The one most of the others point to is the Microsoft.Dynamics.AX.ManagedInterop.dll.  I can't seem to gather what this dll requires, maybe it's just corrupt?  Anyone know more about this dll and what it requires (or where it's required)?

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

    GAC is machine wide, so all processes can use assemblies stored there (that's basically its purpose). If you have AOS and client on the same machine, you can't say which component loaded the assembly just because it started to work. And AX applications definitely don't try to probe directories of other components, that wouldn't make much sense. Trust me that many of the assemblies reported above wouldn't make sense on AOS.

    The only sure way is to find out what dependency can't be located, only then you can really understand what's wrong. But if your installation of AX is corrupted, reinstalling the component may resolve the problem and it would be faster than doing elaborate investigation.

    Microsoft.Dynamics.AX.ManagedInterop.dll is used for integration between AX and .NET, therefore it's widely used by .NET assemblies communicating with AX.

  • Andy Adamak Profile Picture
    4,074 on at

    Thanks for the reply Martin,

    There is no client on the AOS.  This is a server strictly running the AOS, and all of the above error messages are from starting the AOS service.  No clients connected, nothing.  Just starting the AOS gives me all of the above errors in the windows event log.

    And like I said, putting the one AnalysisServices.dll in the GAC on that server running only the AOS, then restarting the AOS got rid of the one error.  I understand what you're saying, however the AOS service is the only thing that could throwing all of the above dll errors (in my mind) because it is secluded from everything else.  

    I'd just reinstall the AOS if I thought that would fix it... but I'm not so sure it would.  Our other AOS server is getting all of the exact same errors, and that was a clean install as well.  

    Can anyone verify that a clean install of a server with just an AOS throws these dll errors when starting it up?  Then I would know if it's just me... which may or may not be helpful.  

    Thanks for your help!

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

    In that case, your application contains some code that references client-based DLLs, which obviously don't exist on AOS. The solution will be to move that code from AOS (probably let it run on client), not putting all client assemblies to AOS.

    The errors are definitely not expected in healthy application.

  • Andy Adamak Profile Picture
    4,074 on at

    Thanks for your continued help Martin.

    Where would this code be?  Would these be classes & services that are in the AOT running server-side?  While this could be a possibility to look into, it doesn't explain the AnalysisServices.dll (and probably others). I've only just started implementing Analysis Services in AX... zero customizations have been added in terms of anything related to Analysis Services reports, projects, cubes, etc etc.  And while I had the dll on my client, it only started working when it was on the AOS.  

    I will look into the client/server code references though.  That could be something worth looking at.  Although when I've had client code in a service or something running server-side in previous versions of AX (2012 CU3), AX would surface an error saying it couldn't do whatever I was trying to do because it was client code that needed to be run through a client.  

    Thanks again.

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

    I would like to tell where exactly is the problem, but honestly I have no idea. I know nothing about your application at all.

    You really have to collect more information to identify the source of the problem. I would first look into Event Viewer, just in case. Then I would try the Assembly Binding Log Viewer (mentioned above), it might help understand what is referring to that assemblies. Then I would run the AOS with standard models only, to verify whether it is caused by customizations or the theory is wrong. Tracing the application may help you identify some code related to the loading the assemblies. And so on.

    The problem is not about running the code, it's about loading assemblies. The code wouldn't run, of course, but that's just a consequence of failing to load necessary libraries. It may be even caused by a wrong reference that isn't actually used for any running code.

  • Community Member Profile Picture
    on at

    I have same problem, did you find the solution?

  • Andy Adamak Profile Picture
    4,074 on at

    Vasiliy,

    Unfortunately not.  We are still getting a few of these errors on the AOS server.  I was able to fix some of our front end issues with Analysis services due to these errors though.  It's the only one I was able to hunt down and resolve.  

    I'll tell you what though: we just stood up a new demo server as an all-in-one (database, AOS, reporting services, analysis services, client) AX environment running the Contoso demo database.  Guess what... these errors are still there:

    Microsoft.Dynamics.Retail.MatrixPivotGrid

    Microsoft.Dynamics.AX.Framework.Client.Controls

    Microsoft.Dynamics.AX.Frameworks.ProductConfiguration

    Microsoft.Dynamics.Kernel.Client

    Microsoft.Dynamics.AX.Framework.Workflow.Metadata.Wizard

    Microsoft.Dynamics.AX.Framework.Workflow.Model.Design

    Microsoft.Dynamics.Retail.StoreConnect.MessageTreeControl

    RetailControls

    Microsoft.Dynamics.Retail.StoreConnect

    EInvoiceCFDI_MX.dll.config

    ElectronicFiscalDocument_BR.dll.config

    Again, we aren't using retail so not really concerned about those... but Kernel.Client?  Framework.Client.Controls?  Those I'm concerned about.  

  • Community Member Profile Picture
    on at

    Hi Andy,

    I'm trying to make SSRS report running on my instalattion. But when I try to run some report the AOS crashes with following error (from Windows Application Log):

    The description for Event ID 180 from source Microsoft Dynamics AX cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    Microsoft Dynamics AX Business Connector Session 3.

    I think that those DLL could be the reason. Did you had AOS crashes? Does adding to GAC Microsoft.AnalysisServices.dll help?

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 34

#1
CP04-islander Profile Picture

CP04-islander 34

#3
Jagadabi Profile Picture

Jagadabi 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans