Failed to create session in Axapta 2012 for user client

If you are getting following error on client opening

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

The solution  of above error is to uncheck a checkbox in Options at

Go to on file menu item -->Tools --> Options-- > Development --> General --> Execute business operations in CIL

Also check whether user is enable in ax or added if not then you need to import user from domain.