Friday 4 March 2016

Duplicate type with name 'Dynamics.Ax.Application.' in assembly 'Dynamics.Ax.Application

       

While using .NET web services i got the below error in dynamics ax 2012:


Duplicate type with name 'Dynamics.Ax.Application.' in assembly 'Dynamics.Ax.Application


On dynamics AX 2012
the solution for above issue is as below:

Stop the AOS
Rename XPPIL folder at path: C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX \bin
Start the AOS
Generate full CIL

This steps resolved my issue.


This helped you..!! Then comment below..:)

2 comments:

  1. Hi,

    I tried the above steps , but still AIF service stopped automatically. Below is the event log error:

    There was an error during processing of the managed application service auto-start for configuration path: 'MACHINE/WEBROOT/APPHOST/Default Web Site/MicrosoftDynamicsAXAif60'. The error message returned is: 'An initialization error occurred while trying to preload an application.

    Exception: System.Configuration.ConfigurationErrorsException

    Message: Duplicate type with name 'Dynamics.Ax.Application.MZK_InvestmentPayoutContract' in assembly 'Dynamics.Ax.Application, Version=6.2.1000.1437, Culture=neutral, PublicKeyToken=null'.

    Where i can this check this duplicate ?

    After re-installing Web service thorugh AX Setup it works, but if i create new or deactivate and activate existing services(inbound ports), again AIF service gets stopped and above is the event log.

    ReplyDelete
    Replies
    1. Please check version for your AX and the assembly. do you have updated any patch?

      Delete