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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

AX 2012 R3 - AIF service fails (“Duplicate type with name ‘Dynamics.Ax.Application.*’” error)

(1) ShareShare
ReportReport
Posted on by 58

Hi everyone,

I’m currently facing a critical issue after deploying a working AIF web service from our test environment to production in Dynamics AX 2012 R3. I would greatly appreciate any guidance or suggestions from the community.

Background

In our test environment, I created a custom AIF service, configured the service group, and successfully tested it. All operations, including SOAP requests and responses, worked as expected.

After validating the service in the test environment, I moved the exact same AIF service objects to the live (production) environment. This includes:


  • Service class and data contracts

  • Service node

  • Service group deployment

Problem

Once deployed in production, the service fails to start. Every time I try to access the service URL, the IIS Application Pool for MicrosoftDynamicsAXAif60 automatically goes into a “Stopped” state.

Event Viewer logs provide the following error:

 
AIF service group not activated. Service group: XXXWebServicesGroup
Error: Duplicate
type with name 'Dynamics.Ax.Application.XXX_SalesQuotation' in assembly 'Dynamics.Ax.Application, Version=6.3.6000.149, Culture=neutral, PublicKeyToken=null'.

I also noticed similar duplicate type errors referencing other custom classes prefixed with XXX_ in the same assembly.

Steps I’ve Tried

So far, I have attempted the following standard solutions to fix the problem:


  1. Stopped IIS and AOS services on the production server.

  2. Deleted the relevant records from the SYSXPPASSEMBLY table in SQL for the affected objects.

  3. Performed full CIL compilation (both incremental and full compilation) to refresh the assemblies.

  4. Redeployed the service group through AOT.

  5. Restarted AOS and IIS to apply all changes.

Despite these steps, the issue persists. The IIS Application Pool still stops immediately, and the duplicate type error continues to appear.

 

Additional Information

  • The same service works perfectly in the test environment with the exact same configuration and code.

  • I have checked the AOT for duplicate class names and there are no manually duplicated classes.

  • The production environment is running Dynamics AX 2012 R3 (6.3.6000.149) with .NET Framework 4.8.

  • The AOS and IIS are on the same server.

Questions

  1. Has anyone encountered this duplicate type error when moving a service from test to production?

  2. Could there be hidden assembly or IL conflicts causing IIS to crash?

  3. Are there any additional steps I should take to completely remove the duplicate type and get the AIF service running in production?

  4. Could this be related to XppIL cache, model conflicts, or leftover test environment artifacts?

 

Any help, hints, or detailed instructions on how to resolve this would be greatly appreciated 🙏

Categories:
I have the same question (0)

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,177

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 860 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 593 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans