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
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 Files\Microsoft Dynamics AX\60\Server\InstanceName\bin)
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'
This comment has been removed by a blog administrator.
ReplyDelete