Faced following error after restoring Dynamics AX databases from one AOS server to other.
Cannot open the datafile "C:\Program Files\Microsoft DynamicsAX\60\Server\DAX2012R3\bin\Application\appl\Standard\axapden-us.alt"
Error code from the openrating system: errno = 13.
Look in file 'errno.h' or in the operating system documentation for an explanation. Resolution:
It was account permssion issue. The AOS service needed to added with full permissions under all Dynamics AX databases in SQL server management studio. This AOS service account manages these files located at above mentione path in error.
Source AOS service was running with domain user account and Destination AOS service was running under Network Service account. When I restored database from source to destination it overwrite all user accounts in destination. I tried to use source AOS service account to run AOS service in destination server, AOS service started but I forgot to assign full permissions to this AOS service account in destination Dynamics AX databases.