Background: We required import an xpo file with a table to AX environment, this table came from an environment that works correctly when we tried to import the file two times an error message appeared “There is already a table, an extended data type or a class with name GsCertificadoCalidadExterno. The import table has been cancelled”.
When we compiled the CIL, It didn’t finish successfully due to this, the system didn’t work correctly, it appeared the next error “AIF Service Section is not activated. Service Section: CuesServiceGroup. Error: Duplicate type with name ‘Dynamics.Ax.Application.GsCertificadoCalidadExterno’ in assembly ‘Dynamics.Ax.Application, Version=6.0.947.280, Culture=neutral, PublicKeyToken=null’” as consequence of this, the AX modules are not working correctly, for example, “All Customers” Form doesn’t show anything, the grid is empty but if we select one row, the customer form appears with the info from customer selected.
In event viewer, we are getting the following error message.
Object Server 03: System.OperationCanceledException: Sección de servicios de AIF no activado. Sección de servicios: CuesServiceGroup. Error: Duplicate type with name ‘Dynamics.Ax.Application.GsCertificadoCalidadExterno’ in assembly ‘Dynamics.Ax.Application, Version=6.0.947.280, Culture=neutral, PublicKeyToken=null’. —> System.BadImageFormatException: Duplicate type with name ‘Dynamics.Ax.Application.GsCertificadoCalidadExterno’ in assembly ‘Dynamics.Ax.Application, Version=6.0.947.280, Culture=neutral, PublicKeyToken=null’.
at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RtFieldInfo.get_FieldType()
at System.ServiceModel.Description.TypeLoader.CreateTypedMessageDescription(Type typedMessageType, ICustomAttributeProvider returnAttrProvider, XmlName returnValueName, String defaultNS, String action, MessageDirection direction)
at System.ServiceModel.Description.TypeLoader.CreateMessageDescription(MethodInfo methodInfo, Boolean isAsync, XmlName returnValueName, String defaultNS, String action, XmlName wrapperName, String wrapperNamespace, MessageDirection direction)
at System.ServiceModel.Description.TypeLoader.CreateOperationDescription(ContractDescription contractDescription, MethodInfo methodInfo, MessageDirection direction, ContractReflectionInfo reflectionInfo, ContractDescription declaringContract)
at System.ServiceModel.Description.TypeLoader.CreateOperationDescriptions(ContractDescription contractDescription, ContractReflectionInfo reflectionInfo, Type contractToGetMethodsFrom, ContractDescription declaringContract, MessageDirection direction)
at System.ServiceModel.Description.TypeLoader.CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, ContractReflectionInfo& reflectionInfo, Object serviceImplementation)
at System.ServiceModel.Description.TypeLoader.LoadContractDescriptionHelper(Type contractType, Type serviceType, Object serviceImplementation)
at System.ServiceModel.Description.ContractDescription.GetContract(Type contractType, Type serviceType)
at System.ServiceModel.ServiceHost.CreateDescription(IDictionary2& implementedContracts) at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) at Microsoft.Dynamics.Ax.Services.AxServiceHost..ctor(Type serviceType, String serviceGroupName, String portType, Boolean integrationEnabled, Boolean portDeployedToIIS, Boolean isXppService, ServiceElement serviceElement, Uri[] baseAddresses) at Microsoft.Dynamics.Ax.Services.AifHelper.PublishServices(String serviceGroupName) --- End of inner exception stack trace --- at Microsoft.Dynamics.Ax.Services.AifHelper.PublishServices(String serviceGroupName) at Microsoft.Dynamics.Ax.Services.AifHelper.PublishAllServiceGroups(Dictionary
2 faultedServices)
We tried to solve this error with next steps without success:
1.- We follow the next instructions:
http://community.dynamics.com/product/ax/f/33/p/71712/131040.aspx
2.- We deleted GsCertificadoCalidadExterno table and compiled again.