If you are using recording feature of Coded UI Test or Fast Forward feature of Microsoft Test Manager (MTM) and getting the following error -
The last action was not recorded because access to the application was denied
there could be two reasons for this -