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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error 351 when generating full CIL

(0) ShareShare
ReportReport
Posted on by

Hi all
After Getting this Error "failed to create a session$ confirm that the user has the proper privileges".

I have kept for FUL CIL generation, with renaming the X "C:\Program Files\Microsoft Dynamics AX\60\Server\AX2012R2CU7\bin\XppIL as XppIL_Old and restarted the AOS.

 

After that, I ran the Full CIL generation I'm facing the below error. Please put some suggestion 

System.OperationCanceledException: AIF service group not activated.  Service group: AifProject.  Error: Could not load file or assembly 'Dynamics.Ax.Application, Version=6.3.164.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Dynamics.Ax.Application, Version=6.3.164.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)

   at System.Reflection.RuntimeMethodInfo.get_Signature()

   at System.Reflection.RuntimeMethodInfo.GetParameters()

   at System.ServiceModel.Description.ServiceReflector.ValidateParameterMetadata(MethodInfo methodInfo)

   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(IDictionary`2& 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)


Failed to create a session$ confirm that the user has the proper privileges

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    And could not reactivate below Services

    Service group: AifProject

    Service group: AifProject etc.

  • Community Member Profile Picture
    on at

    Hi Gopal, did you find a resolution to this issue. Please share if you have. I am seeing the same error when I try to generate full CIL. 

  • Pir_Rana Profile Picture
    836 on at
  • Verified answer
    Community Member Profile Picture
    on at

    Thanks a lot Pir for sharing these blogs... I had tried everything except what was suggested in 2nd blog i.e. selective compile of tables and classes from AOT instead of full compile using axbuild.exe and that did the trick.

    Thanks again for your help...

    Haisam

  • Community Member Profile Picture
    on at

    Hi Mohammad Rana,

    I followed you link but could not Generate Full CIL same error with service not started .

    > I have deployed the services "AifProject" form ServiceGroup, below error Pop-up.

    and Even from Service and AIF> Inboubd Port i tried Re-Activating Same error as below

    The port 'AifProject' could not be deployed.\nError:  

    error CS0006: Metadata file 'C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\Bin\XppIL\Dynamics.Ax.Application.dll' could not be found

    Please look into this isssue

  • Verified answer
    Pir_Rana Profile Picture
    836 on at

    Hi Gopal,

    I assume that you already done the following steps:

    • Full Compilation of AOT
    • Full CIL generate
    • Restart AOS
    • Monitoring EventLogs

    And Check what version of .Net framework installed on the AOS box ? It should be .Net 4.0. Sometime it may create an issue.

    and sometime it works smoothly with .Net framework 4.5 RTM.

  • Community Member Profile Picture
    on at

    Net-FrameWorkVersion.png

    PFS, version,
    There any many Error in Classes and table, I found while Compilation. Resolving it Manually.

  • Pir_Rana Profile Picture
    836 on at

    Is your problem solved after full compilation and resolve all errors from class and tables?

  • Community Member Profile Picture
    on at

    90% error resolved, once  all error resolved ill follow the above steps.

    and will let you know.! :-)

  • Community Member Profile Picture
    on at

    HI Mohammad,

    I have Observed that in XppIL folder(C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL) required files are not generating after compilation and FUL CIL generation.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans