AxBuild.exe compilation error

Yesterday when i try to compile my AX 2012 R3 with AxBuild.Exe, i was getting the following error

“Object Server 01:  Can not create default Keyset. Error code -2146893809”.

Here i was running the command prompt as an Adminitrator and user has the access to AX database. After going through some of sites online i found out that, the issue has been caused by user permission.

The AOS was running under different user account and i was trying to run the compilation with other user account.

When I log off this user and logged in as the same user under which the AOS service is running and then started the compilation. And this the compilation is successful.