다음을 통해 공유


FAQ: Why am I getting “access denied” during recording?

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 -

  1. The application under test (one that you are trying to record) has higher privileges then the Visual Studio or Microsoft Test Manager process.  In this case, this is deliberate (a.k.a. by design) to prevent any security issue.
  2. You are running this on a VM with dynamic disk.  This is bug in the current release.

Comments

  • Anonymous
    November 29, 2011
    Gautam, Is this resolved yet? I am running it on a physical machine with dynamic disk. I have the exact same problem. Regards, Prabhat

  • Anonymous
    November 29, 2011
    @Prabhat - This is resolved in the next major release but not in VS 2010.

  • Anonymous
    January 05, 2012
    I recently had an issue where I was unable to record interactions with MSIExec installers using the Coded-UI recorder.  It would produce the "The last action was not recorded because access to the application was denied" error.  I was able to resolve this by installing KB2403277 @ archive.msdn.microsoft.com/KB2403277

  • Anonymous
    January 05, 2012
    @Paul - I don't think the KB you are mentioning has anything to do with this.  In your case the error earlier was probably genuine because Coded UI Test Builder was not running with admin priviledge and setup was running as admin. Something has changed in your scenario above to fix the issue.

  • Anonymous
    January 05, 2012
    The comment has been removed