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 :
Microsoft Dynamics AX (Archived)

Error AIF Service Group is not activated when Generate Full CIL after Upgrade from AX 2012 R3 CU11 to CU12

(0) ShareShare
ReportReport
Posted on by 640

Dear all,

I upgrade AX 2012 R3 Cumulative Update 11 to 12. 

Cumulative Update 12 was installed successfully.

I have restarted AOS service.

Compile application was completed successfully.

But, when compile into .NET Framework CIL, I got error 

System.OperationCanceledException: AIF service group not activated.
Service group: ApprovalsServices. Error: Exception has been thrown by the target of an ivocation.
--> System.Reflection.TargetInvocationException: Exception has been thrown by target of an invocation.
--> System.TypeLoadException: Could not load type 'Dynamics.Ax.Application.SysCustomChartAxis' from assembly 'Dynamics.Ax.Application, Version=6.3.5000.133, Culture=neutral, PublicKeyToken=null'.

System.OperationCanceledException: AIF service group not activated.
Service group: DocumentHandling. Error: Exception has been thrown by the target of an ivocation.
--> System.Reflection.TargetInvocationException: Exception has been thrown by target of an invocation.
--> System.TypeLoadException: Could not load type 'Dynamics.Ax.Application.SysWindowsAppFileDataContract' from assembly 'Dynamics.Ax.Application, Version=6.3.5000.133, Culture=neutral, PublicKeyToken=null'.

I checked in "Inbound Ports" and the result is below.

1. "ApprovalsServices" is not activated.

Error :

System.OperationCanceledException: AIF service group not activated.
Service group: ApprovalsServices. Error: Exception has been thrown by the target of an ivocation. 
--> System.Reflection.TargetInvocationException: Exception has been thrown by target of an invocation.
--> System.TypeLoadException: Could not load type 'Dynamics.Ax.Application.SysCustomChartAxis' from assembly 'Dynamics.Ax.Application, Version=6.3.5000.133, Culture=neutral, PublicKeyToken=null'.

2. "DocumentHandling" is not activated.

Error :

System.OperationCanceledException: AIF service group not activated.
Service group: DocumentHandling. Error: Exception has been thrown by the target of an ivocation. 
--> System.Reflection.TargetInvocationException: Exception has been thrown by target of an invocation.
--> System.TypeLoadException: Could not load type 'Dynamics.Ax.Application.SysWindowsAppFileDataContract' from assembly 'Dynamics.Ax.Application, Version=6.3.5000.133, Culture=neutral, PublicKeyToken=null'.

3. "ExpenseServices" is not activated.

Error :

System.OperationCanceledException: AIF service group not activated.
Service group: ApprovalsServices. Error: Exception has been thrown by the target of an ivocation. 
--> System.Reflection.TargetInvocationException: Exception has been thrown by target of an invocation.
--> System.TypeLoadException: Could not load type 'Dynamics.Ax.Application.SysCustomChartAxis' from assembly 'Dynamics.Ax.Application, Version=6.3.5000.133, Culture=neutral, PublicKeyToken=null'.

4. "SysWindowsAppApprovalsServices" is not activated.

Error :

System.OperationCanceledException: AIF service group not activated.
Service group: ApprovalsServices. Error: Exception has been thrown by the target of an ivocation. 
--> System.Reflection.TargetInvocationException: Exception has been thrown by target of an invocation.
--> System.TypeLoadException: Could not load type 'Dynamics.Ax.Application.SysCustomFieldContract' from assembly 'Dynamics.Ax.Application, Version=6.3.5000.133, Culture=neutral, PublicKeyToken=null'.

5. "TimesheetServices" is not activated.

Error :

System.OperationCanceledException: AIF service group not activated.
Service group: ApprovalsServices. Error: Exception has been thrown by the target of an ivocation. 
--> System.Reflection.TargetInvocationException: Exception has been thrown by target of an invocation.
--> System.TypeLoadException: Could not load type 'Dynamics.Ax.Application.SysWindowsAppFileDataContract' from assembly 'Dynamics.Ax.Application, Version=6.3.5000.133, Culture=neutral, PublicKeyToken=null'.

I retry activate the "ApprovalsServices" and got error :

The port "ApprovalsServices" could not be deployed.
\nError :
C:\Users\AXAOSAdmin\AppData\Local\Temp\ServiceGeneration\SysCustomSectionServiceGetSectionsRequest.cs(21,48) :
error CS0246: The type or namespace name 'SysCustomSectionContext' could not be found (are you missing a using directive or assembly reference?)
C:\Users\AXAOSAdmin\AppData\Local\Temp\ServiceGeneration\SysCustomSectionServiceGetSectionsRequest.cs(17,48) :
error CS0246: The type or namespace name 'SysCustomSection' could not be found (are you missing a using directive or assembly reference?)
C:\Users\AXAOSAdmin\AppData\Local\Temp\ServiceGeneration\SysWorkflowApprovalWorkItemServiceGetAttachmentContentResponse.cs(17,16) :
error CS0246: The type or namespace name 'SysWindowsAppFileDataContract' could not be found (are you missing a using directive or assembly reference?)
C:\Users\AXAOSAdmin\AppData\Local\Temp\ServiceGeneration\TrvExpenseReportCustomServiceGetExpenseDelegatesResponse.cs(17,48) :
error CS0246: The type or namespace name 'TrvExpenseDelegateContract' could not be found (are you missing a using directive or assembly reference?)

Please advise. Thanks in advance.

Best regards,

Johanna

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Fredrik Sætre Profile Picture
    12,644 on at
    RE: Error AIF Service Group is not activated when Generate Full CIL after Upgrade from AX 2012 R3 CU11 to CU12

    Do you get any errors compiling in AX (x++, not CIL).

    Maybe try running the AXD wizard for the influenced objects.

  • Verified answer
    pearl_jo Profile Picture
    640 on at
    RE: Error AIF Service Group is not activated when Generate Full CIL after Upgrade from AX 2012 R3 CU11 to CU12

    Thank you Fredrik :)

    There are errors in my AOT object. Now, this issue has been resolved.

    I got solution from axvuongbao.blogspot.co.id/.../fix-parameter-could-not-be-serialized.html :

    1. Check the CIL log file, generally located at "C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL\Dynamics.Ax.Application.dll.log"

    2. You will find the AOT object for which the CIL generator found the error.

    3. Compile that object, fix the error, or delete (if needed) and then regenerate the IL.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans