'Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException' 类型的未处理异常

An unhandled exception of type 'Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException'

我遇到了一个奇怪的异常类型:

'Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException' occurred in Microsoft.VisualStudio.TestTools.UITesting.dll

解决方案在开发机器上运行,但在部署时抛出此异常machine.I已在部署机器上安装了测试代理、测试控制器和visual studio premium 2013,仍然面临同样的问题

尝试初始化回放时抛出异常:

Playback.Initialize()

///消息

Cannot perform '' on the control. Additional Details: The control details were not specified.

///堆栈跟踪

at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context) at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context) at Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize() at Test.SAPDupCheck.OpenBrowser() in c:\Users\Documents\Visual Studio 2013\Projects\Test\Test\SAPDupCheck.cs:line 79 at Test.Program.Main(String[] args) in c:\Users\geethu_john02\Documents\Visual Studio 2013\Projects\Test\Test\Program.cs:line 14 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

///来源

Microsoft.VisualStudio.TestTools.UITesting

///目标站点

{Void MapAndThrowComException(System.Runtime.InteropServices.COMException, Microsoft.VisualStudio.TestTools.UITesting.IPlaybackContext)}

///内部异常

{"Retrieving the COM class factory for component with CLSID {6DA215C2-D80D-42F2-A514-B44A16DCBAAA} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."}

我正在使用

Microsoft.VisualStudio.TestTools.UITest.Playback version10

dll 在我的项目中。

I have installed visual studio2013 premium which is having 12 version dlls. So the same dll with version 10 was not able to register in the system and the solution is to install Test agent 2010/Test agent10 and can solve this error.