Test View Issue: An exception was encountered while constructing the content of this frame
Feb 8, 2012Charles Sterling

Summary
This post addresses a specific bug encountered in Visual Studio 2010's Test View window, where an exception occurs during content construction. It provides a temporary fix (closing and reopening Visual Studio) and a permanent solution by adjusting the 'Test Tools' options to disable the prompt for test changes when background discovery is off. The underlying exception details indicate a conflict with command handlers for a menu command.
More from the Coded UI Test Deprecation and Alternatives trail
- Changes to Coded UI Test in Visual Studio 2019
- Troubleshooting launch issues with xaml based apps using Coded UI Test
- Coded UI Test Extensibility V2
- Coded UI testing support for Silverlight using Visual Studio 2013
- Test controllers are not visible or marked offline in MTM when multiple versions of MTM are installed