{"id":5643,"date":"2012-02-08T22:29:16","date_gmt":"2012-02-08T22:29:16","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2012\/02\/08\/test-view-issue-an-exception-was-encountered-while-constructing-the-content-of-this-frame\/"},"modified":"2019-02-14T18:00:17","modified_gmt":"2019-02-15T02:00:17","slug":"test-view-issue-an-exception-was-encountered-while-constructing-the-content-of-this-frame","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/test-view-issue-an-exception-was-encountered-while-constructing-the-content-of-this-frame\/","title":{"rendered":"Test View Issue: An exception was encountered while constructing the content of this frame"},"content":{"rendered":"<p>In Visual Studio 2010 Under certain circumstances the you may encounter problems opening the <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms182452.aspx\">Test View<\/a> window. (see image below) <\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/image_8.png\"><img decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/02\/image_thumb_3.png\" width=\"244\" height=\"196\" \/><\/a><\/p>\n<p>Luckily it is easy to fix.&#160; To make it go away, you need to close\/reopen Visual Studio. <\/p>\n<p>If you don\u2019t want this ever happening again, do the following:<\/p>\n<blockquote>\n<p>1. Go to the Tools main menu -&gt; Options\u2026 | Test Tools <\/p>\n<p>2. Check the checkbox \u201cShow all settings\u201d to see the Test Tools settings<\/p>\n<p>3. For the condition that reads \u201c When changes are made to the tests and background discovery of test methods is not enabled\u201d (#9 from the top), choose \u201cDon\u2019t prompt\u201d<\/p>\n<\/blockquote>\n<pre><code>&lt;p&gt;&lt;img src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/02\/image_6.png\" \/&gt;&lt;\/p&gt;  &lt;p&gt;&amp;#160;&lt;\/p&gt;  &lt;pre&gt;Error Text Below: &lt;\/pre&gt;\n<\/code><\/pre>\n<pre>An exception was encountered while constructing the content of this frame. This information is also logged by running the application with the 7<br \/>\nlog parameter on the command line, which stores results in \u201cC:UsersBobAppDataRoamingMicrosoftVisualStudioUO.OActivityLog.xml\u2019.<br \/>\nException details:<br \/>\nSystem.Reflection.TargetlnvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.ArgumentException: There<br \/>\nis already a command handler for the menu command b85579aa-8be0-4c4f-a850-90902b317571 : 13074.<br \/>\nat System.ComponentModel.Design.MenuCommandService.AddCommand(MenuCommand command)<br \/>\nat Microsoft.VisualStudio.TestTools.Vsip.CommandHelper.AddCommand(JMenuCommandService menuService, EventHandler invokeHandler,<br \/>\nEventHandler statusHandler, CommandiD id)<br \/>\nat Microsoft.VisualStudio.TestTools.TestCaseManagement.TestViewToolWindowJnitializeo<br \/>\nat Microsoft.VisualStudio.TestTools.TestCaseManagement.TestViewToolWindowHost..ctorO<br \/>\n--- End of inner exception stack trace ---<br \/><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In Visual Studio 2010 Under certain circumstances the you may encounter problems opening the Test View window. (see image below) Luckily it is easy to fix.&#160; To make it go away, you need to close\/reopen Visual Studio. If you don\u2019t want this ever happening again, do the following: 1. Go to the Tools main menu [&hellip;]<\/p>\n","protected":false},"author":81,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5643","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>In Visual Studio 2010 Under certain circumstances the you may encounter problems opening the Test View window. (see image below) Luckily it is easy to fix.&#160; To make it go away, you need to close\/reopen Visual Studio. If you don\u2019t want this ever happening again, do the following: 1. Go to the Tools main menu [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/5643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=5643"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/5643\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=5643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=5643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=5643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}