Microsoft Dynamics AX: Duplicate type with name in assembly – Bojensen Blogs
Bojensen Blogs

Microsoft Dynamics AX: Duplicate type with name in assembly

 

Duplicate type with name in assembly XX

Sometimes we need to delete and recreate the service, we might face some issues with duplicate type error. Here is the solution:

Delete classes and service from AOT

After this we need to delete the service from the inbound or outbound port

          a. Go to system Administration-> Setup-> Inbound/Outbound ports.    
          b. Select the Port the service is using and Deactivate it.
          c. Go to ‘Service operation’ button and remove the service you deleted from AOT.
          d. Reactivate port.
     3. Stop AOS services
     4. Delete XppIL directory
         (c:Program FilesMicrosoft Dynamics AX60ServerInstanceNamebin)
     5. Restart AOS
     6. Run CIL compile
After this we need to add the new service into the inbound or outbound port:
        a. Go to system Administration-> Setup-> Inbound/Outbound ports
        b. Select the Port the service is using and Deactivate it.
        c. Go to ‘Service operation’ button and add the new service.
         d. click on Activate button after selecting the port.
If you have a Service reference in your VS project follow below steps to update services:
        a. In solution explorer right click on service reference
        b. select ‘Update Service Reference’

Microsoft Dynamics AX: Duplicate type with name in assembly

Comments are closed.