“Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics”- error while import .xpo in ax 2012

The below error will come when you try to import and compare the objects from .XPO.

“Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics”

 
Solution: Full CIL will resolves the error.
If full CIL does not solves the issue then follow the below steps.
1. Stop the AOS.
2. Delete the *.pdb and *.netmodule files
3. Start AOS and do full CIL.

Error: “The CIL generator found errors and could not save the new assembly.”

Error: “The CIL generator found errors and could not save the new assembly.”Error: When run full or incremental CIL , system showing below error
“The CIL generator found errors and could not save the new assembly.”

Reason : This might be CIL generation issue.

Solution :

Step 1: Stop AX services.

Step 2: Delete all isolated files from below path (Please Note: Delete only files which are not in any folder)

C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL directory.

CIL Error

clip_image003_thumb[1]
 

Step 3: Start AX service.

Step 4: Synch Data Dictionary.

Step 5: Full Compile.

Step 6: Full CIL Compile.

Now try to reopen you AX client. It should be work. 🙂