<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dotnet thoughts &#187; Visual Studio</title>
	<atom:link href="http://www.dotnetthoughts.net/category/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotnetthoughts.net</link>
	<description>a dotnet developer&#039;s technical blog</description>
	<lastBuildDate>Thu, 02 Feb 2012 03:18:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail</title>
		<link>http://www.dotnetthoughts.net/2012/02/01/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-please-see-the-application-event-log-or-use-the-command-line-sxstrace-exe-tool-for-more-detail/</link>
		<comments>http://www.dotnetthoughts.net/2012/02/01/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-please-see-the-application-event-log-or-use-the-command-line-sxstrace-exe-tool-for-more-detail/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 03:18:00 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 3.0 / 3.5]]></category>
		<category><![CDATA[.Net 4.0]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[sxstrace]]></category>
		<category><![CDATA[sxstrace.exe]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2332</guid>
		<description><![CDATA[Today I got a comment from Vitor, Vitor is getting an exception like this while starting application. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe &#8230; <a href="http://www.dotnetthoughts.net/2012/02/01/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-please-see-the-application-event-log-or-use-the-command-line-sxstrace-exe-tool-for-more-detail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I got a <a href="http://www.dotnetthoughts.net/2010/12/22/net-framework-initialization-error-%E2%80%93-unable-to-find-a-version-of-the-runtime-to-run-this-application/#comment-699">comment from Vitor</a>, Vitor is getting an exception like this while starting application.</p>
<blockquote><p>The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.</p></blockquote>
<p>So I thought of work around this issue. To reproduce the issue, I tampered the exe.config file of one of my application, by removing &lt;configuration&gt; tag from the file. And it started throwing the exception.</p>
<div id="attachment_2336" class="wp-caption aligncenter" style="width: 310px"><img src="http://www.dotnetthoughts.net/wp-content/uploads/2012/02/side_by_side-300x96.jpg" alt="The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail." title="The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail." width="300" height="96" class="size-medium wp-image-2336" /><p class="wp-caption-text">The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.</p></div>
<p>I verified the same with EventViewer, and I found a message like this, under Windows Logs > Application </p>
<blockquote><p>Activation context generation failed for &#8220;C:\CaptureItPlus\Binaries\CaptureItPlus.exe&#8221;. Error in manifest or policy file &#8220;C:\CaptureItPlus\Binaries\CaptureItPlus.exe.Config&#8221; on line 1. Invalid Xml syntax. </p></blockquote>
<p>The error message is pretty self explanatory. If you are not able to access the event viewer, the other option is using sxstrace.exe tool. You can enable run the sxstrace in trace mode, you can do this by following command.</p>
<pre class="brush: plain; title: ; notranslate">
sxstrace.exe Trace -logfile:C:\captureittrace.log
</pre>
<p>And execute the application. After getting exception, stop the tracing and you can parse the log file using following command.</p>
<pre class="brush: plain; title: ; notranslate">
sxstrace.exe Parse -logfile:C:\captureittrace.log -outfile:C:\captureittrace.txt
</pre>
<p>It is required because .log is a binary file. Now open the .txt file, you can see similar message,</p>
<blockquote><p>INFO: Parsing Application Config File C:\CaptureItPlus\Binaries\CaptureItPlus.exe.Config.<br />
ERROR: Line 1: XML Syntax error.<br />
ERROR: Activation Context generation failed.<br />
End Activation Context Generation.</p></blockquote>
<p>Now open the .exe.config and add the missing <configuration>, now double click on the application, this issue will be resolved. <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </configuration></p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2012/01/11/how-to-use-net-assembly-in-vbscript/" title="Permanent link to How to use .Net assembly in VBScript">How to use .Net assembly in VBScript</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/11/02/debugging-nunit-tests-in-visual-studio-2010/" title="Permanent link to Debugging NUnit Tests in Visual Studio 2010">Debugging NUnit Tests in Visual Studio 2010</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/06/30/how-to-use-taskdialog-api-in-c/" title="Permanent link to How to use TaskDialog API in C#">How to use TaskDialog API in C#</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/08/03/windows-7-sdk-installation-success-or-error-status-1603/" title="Permanent link to Windows 7 SDK Installation success or error status: 1603">Windows 7 SDK Installation success or error status: 1603</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/01/18/how-to-unit-test-asynchronous-callbacks/" title="Permanent link to How to unit test asynchronous callbacks">How to unit test asynchronous callbacks</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/02/01/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-please-see-the-application-event-log-or-use-the-command-line-sxstrace-exe-tool-for-more-detail/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to execute ms tests in parallel on multi-cpu / core machines</title>
		<link>http://www.dotnetthoughts.net/2012/01/18/how-to-execute-ms-tests-in-parallel-on-multi-cpu-core-machines/</link>
		<comments>http://www.dotnetthoughts.net/2012/01/18/how-to-execute-ms-tests-in-parallel-on-multi-cpu-core-machines/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 07:17:47 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[MS Test]]></category>
		<category><![CDATA[MS Test Parallel]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2278</guid>
		<description><![CDATA[VS 2010 supports running MS Tests in parallel. Most of the machines available in the market are multi-cpu / core machines. This will help us to increase the number of tests executing in same time, which will reduce total test &#8230; <a href="http://www.dotnetthoughts.net/2012/01/18/how-to-execute-ms-tests-in-parallel-on-multi-cpu-core-machines/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">VS 2010 supports running MS Tests in parallel. Most of the machines available in the market are multi-cpu / core machines. This will help us to increase the number of tests executing in same time, which will reduce total test time. But while writing tests, developers should make sure the tests are thread safe, if it is not, it may result in incorrect results, deadlocks etc.</p>
<p style="text-align: justify;">You can enable parallel test execution by editing the testsettings file, instead of double click and open the test settings dialog, open the file using Open with option in the context menu, and select XML(Text) Editor option, which open the testsettings file in XML Editor. In the XML, find the Execution element. Add parallelTestCount attribute to the Execution element(By default it will not be there).</p>
<div id="attachment_2292" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2292" title="Parallel Test count attribute in testsettings file" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/parallelTestcount_attribute-300x53.jpg" alt="Parallel Test count attribute in testsettings file" width="300" height="53" /><p class="wp-caption-text">Parallel Test count attribute in testsettings file</p></div>
<p style="text-align: justify;">By default it will be 1(if the attribute is not exists), other options are 0 for Auto configure we will use as many tests as we can based on your CPU and core count, and n, the number n of tests to run in parallel. Save the changes. Restart visual studio. And you are done.(Note: You need to restart visual studio, otherwise changes will not reflect.)</p>
<p>Here is a sample unit test</p>
<pre class="brush: csharp; title: ; notranslate">
[TestMethod]
public void TestMethod3()
{
    Console.WriteLine(Thread.CurrentThread.Name);
    Thread.Sleep(2000);
}
</pre>
<p>Now I am running few test cases (11) with no parallelTestCount attribute and here is the Test Results window and summary</p>
<div id="attachment_2283" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2283" title="Test Results View - No attribute specified" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/with_no_attribute-300x147.jpg" alt="Test Results View - No attribute specified" width="300" height="147" /><p class="wp-caption-text">Test Results View - No attribute specified</p></div>
<div id="attachment_2284" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2284" title="Test Results summary - No attribute specified" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/with_no_attribute_summary-300x139.jpg" alt="Test Results summary - No attribute specified" width="300" height="139" /><p class="wp-caption-text">Test Results summary - No attribute specified</p></div>
<p>Now I added the parallelTestCount attribute, with value of 5 and here is the Test Results window and summary, you can notice the time difference between two executions.</p>
<div id="attachment_2281" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2281" title="Test Results View - parallelTestCount Attribute specified" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/with_attribute-300x174.jpg" alt="Test Results View - parallelTestCount Attribute specified" width="300" height="174" /><p class="wp-caption-text">Test Results View - parallelTestCount Attribute specified</p></div>
<div id="attachment_2282" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2282" title="Test Results Summary - With parallelTestCount attribute specified" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/with_attribute_summary-300x153.jpg" alt="Test Results Summary - With parallelTestCount attribute specified" width="300" height="153" /><p class="wp-caption-text">Test Results Summary - With parallelTestCount attribute specified</p></div>
<p style="text-align: justify;">Of course there are many other factors that affect this. There is the cost of starting and tearing down the run, so you will see a lesser effect if you have a few tests. It also depends on the number of CPU/cores you have and of course how fast your tests execute.</p>
<p>Happy unit testing <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2011/11/22/mstest-exe-does-not-deploy-all-items/" title="Permanent link to MSTest.exe does not deploy all items">MSTest.exe does not deploy all items</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/12/23/how-to-do-code-coverage-with-nunit-tests/" title="Permanent link to How to do code coverage with NUnit tests">How to do code coverage with NUnit tests</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/01/29/quick-introduction-to-ms-test/" title="Permanent link to Quick introduction to MS Test">Quick introduction to MS Test</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/10/29/test-impact-analysis-in-visual-studio-2010/" title="Permanent link to Test impact analysis in Visual Studio 2010">Test impact analysis in Visual Studio 2010</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/01/05/how-to-compare-equality-between-two-objects-in-nunit/" title="Permanent link to How to compare equality between two objects in NUnit">How to compare equality between two objects in NUnit</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/01/18/how-to-execute-ms-tests-in-parallel-on-multi-cpu-core-machines/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use .Net assembly in VBScript</title>
		<link>http://www.dotnetthoughts.net/2012/01/11/how-to-use-net-assembly-in-vbscript/</link>
		<comments>http://www.dotnetthoughts.net/2012/01/11/how-to-use-net-assembly-in-vbscript/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 19:31:45 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 3.0 / 3.5]]></category>
		<category><![CDATA[.Net 4.0]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[RegAsm]]></category>
		<category><![CDATA[VBScript]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2243</guid>
		<description><![CDATA[Few days before I got a requirement to use a .Net assembly in VBScript, but it was not working. But today I got the solution. It was related to my 64bit OS. In this post I am discussing how to &#8230; <a href="http://www.dotnetthoughts.net/2012/01/11/how-to-use-net-assembly-in-vbscript/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Few days before I got a requirement to use a .Net assembly in VBScript, but it was not working. But today I got the solution. <strong>It was related to my 64bit OS</strong>. <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  In this post I am discussing how to create and use a .net assembly in VBScript or Javascript.</p>
<p style="text-align: justify;">First we need to create a class library. Set the ComVisible attribute to true in the AssemblyInfo.cs manually.</p>
<pre class="brush: csharp; title: ; notranslate">
[assembly: ComVisible(true)]
</pre>
<p style="text-align: justify;">Or you can do it using Properties &gt; Application Tab and select Assembly Information, from the Assembly Information dialog, Check the Make assembly COM-Visible check box.</p>
<div id="attachment_2249" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2249" title="Make Assembly COM Visible option from Assembly Information dialog" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/make_com_visible-300x140.jpg" alt="Make Assembly COM Visible option from Assembly Information dialog" width="300" height="140" /><p class="wp-caption-text">Make Assembly COM Visible option from Assembly Information dialog</p></div>
<p style="text-align: justify;">Build the assembly. Now we need register the assembly. We can do it using RegAsm.exe. <strong>If your OS in 64 bit, then you need to use Regasm command from Framework64 folder(Normally it will be C:\Windows\Microsoft.NET\Framework64\ folder).</strong> For running RegAsm command it is recommended to sign the assembly. You can Sign the assembly Properties &gt; Signing Tab.</p>
<div id="attachment_2250" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2250" title="Sign Assembly option" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/sign_assembly-300x97.jpg" alt="Sign Assembly option" width="300" height="97" /><p class="wp-caption-text">Sign Assembly option</p></div>
<p style="text-align: justify;">As RegAsm command add / update information to Windows Registry, you need to run the RegAsm command as Administrator, otherwise it will not work.</p>
<p>You can register the assembly using following command, like this</p>
<pre class="brush: plain; title: ; notranslate">
regasm /codebase assemblyname.dll
</pre>
<p>You can unregister the assembly using RegAsm command, like this</p>
<pre class="brush: plain; title: ; notranslate">
regasm /u assemblyname.dll
</pre>
<p>That&#8217;s it. Now you can create the object of the .net assembly in VBScript. Like this, it will add 10 and 20 using C# Add method and returns the value.</p>
<pre class="brush: vb; title: ; notranslate">
Dim calcLib
Set calcLib = CreateObject(&quot;CalcLib.Math&quot;)
Dim result
result = calcLib.Add (10 , 20)
msgbox result
</pre>
<p>And here is the C# Class, which we are invoked from VBScript.</p>
<pre class="brush: csharp; title: ; notranslate">
namespace CalcLib
{
    public class Math
    {
        public int Add(int number1, int number2)
        {
            return number1 + number2;
        }
    }
}
</pre>
<p>Happy Coding <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2009/01/30/finding-types-in-a-running-program/" title="Permanent link to Finding types in a Running Program">Finding types in a Running Program</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2012/02/01/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-please-see-the-application-event-log-or-use-the-command-line-sxstrace-exe-tool-for-more-detail/" title="Permanent link to The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail">The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/09/21/how-measure-get-code-coverage-by-partcover-with-mstest/" title="Permanent link to How measure get code coverage by PartCover with MSTest">How measure get code coverage by PartCover with MSTest</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/11/12/how-redirect-output-from-a-console-application/" title="Permanent link to How redirect output from a console application">How redirect output from a console application</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/12/22/net-framework-initialization-error-%e2%80%93-unable-to-find-a-version-of-the-runtime-to-run-this-application/" title="Permanent link to .Net Framework Initialization Error – Unable to find a version of the runtime to run this application">.Net Framework Initialization Error – Unable to find a version of the runtime to run this application</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/01/11/how-to-use-net-assembly-in-vbscript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cloak option missing from source control explorer context menu</title>
		<link>http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/</link>
		<comments>http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 05:57:34 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Version Control]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Cloak]]></category>
		<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2233</guid>
		<description><![CDATA[Ever noticed some time cloak menu item missing from source control explorer context menu? Cloak option is missing from source control explorer context menu Cloaking used to prevent users from viewing specified workspace folders or for folders you do not &#8230; <a href="http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ever noticed some time cloak menu item missing from source control explorer context menu?</p>
<div class="mceTemp mceIEcenter" style="text-align: justify;">
<dl id="attachment_2235" class="wp-caption aligncenter" style="width: 255px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-2235" title="Cloak option is missing from source control explorer context menu" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/clock_option_missing1.jpg" alt="Cloak option is missing from source control explorer context menu" width="245" height="121" /></dt>
<dd class="wp-caption-dd">Cloak option is missing from source control explorer context menu</dd>
</dl>
</div>
<p style="text-align: justify;">Cloaking used to prevent users from viewing specified workspace folders or for folders you do not currently need. Cloaking is useful when you are working with files from two or more branches under a common parent to prevent you from copying files unnecessarily. Finally, cloaking increases performance bandwidth and conserves local disk space by preventing folders and files not used currently from being copied to the local working folder. Today I noticed that I am missing the cloak option for a specific folder. I couldn&#8217;t find the reason, because it available for another Folder in same workspace. Later I found that it was because of the mapping of local and source folder are different. Like my TFS path was $Projects/System/Data/Binaries, it should be mapped to C:\Projects\System\Data\Binaries, but I was mapped to some other folder like C:\Projects\System\Data\DataBinaries. And then I changed it via File &gt; Source Control &gt; Workspaces option. After this I got the cloak option. <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="attachment_2234" class="wp-caption aligncenter" style="width: 252px"><img class="size-full wp-image-2234" title="Cloak option of Source control explorer conext menu" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/clock_option_missing.jpg" alt="Cloak option of Source control explorer conext menu" width="242" height="117" /><p class="wp-caption-text">Cloak option of Source control explorer conext menu</p></div>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2011/02/21/how-to-store-tfs-credentials/" title="Permanent link to How to store TFS credentials">How to store TFS credentials</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/01/04/tfs-build-notification-tool/" title="Permanent link to TFS Build Notification Tool">TFS Build Notification Tool</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/02/28/controls-toolbox-not-showing-in-visual-studio-2010/" title="Permanent link to Controls Toolbox not showing in Visual Studio 2010">Controls Toolbox not showing in Visual Studio 2010</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/05/11/changing-the-diff-program-used-by-visual-studio/" title="Permanent link to Changing the diff program used by Visual Studio">Changing the diff program used by Visual Studio</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/10/11/open-visual-studio-files-as-administrator/" title="Permanent link to Open Visual Studio Files As Administrator">Open Visual Studio Files As Administrator</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to debug Windows Live Writer plugins</title>
		<link>http://www.dotnetthoughts.net/2011/11/20/how-to-debug-windows-live-writer-plugins/</link>
		<comments>http://www.dotnetthoughts.net/2011/11/20/how-to-debug-windows-live-writer-plugins/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 09:29:07 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows Forms]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[Live Writer Plugin]]></category>
		<category><![CDATA[Windows Live Writer]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2042</guid>
		<description><![CDATA[This is final post related to live writer plugins and its about debugging the Live writer plugins. While developing I don&#8217;t think there is a way we can debug the plugin code. This is after deployment. Initially I faced one &#8230; <a href="http://www.dotnetthoughts.net/2011/11/20/how-to-debug-windows-live-writer-plugins/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This is final post related to live writer plugins and its about debugging the Live writer plugins. While developing I don&#8217;t think there is a way we can debug the plugin code. This is after deployment. Initially I faced one issue with options dialog, it was related to object reference issue, I got a message like this.</p>
<div id="attachment_2044" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.dotnetthoughts.net/wp-content/uploads/2011/11/plugin_settings_error.jpg"><img class="size-medium wp-image-2044" title="Plug-in Error occured - Messagebox from Windows Live Writer" src="http://www.dotnetthoughts.net/wp-content/uploads/2011/11/plugin_settings_error-300x197.jpg" alt="Plug-in Error occured - Messagebox from Windows Live Writer" width="300" height="197" /></a><p class="wp-caption-text">Plug-in Error occured - Messagebox from Windows Live Writer</p></div>
<p style="text-align: justify;">It only shows the exception message, not the stack trace or any other information which helps to find the exception. For debugging, you need to attach the Windows Live writer to Visual Studio(we may need to run visual studio as Administrator) using Attach Process feature of Visual Studio from Debug menu.</p>
<div id="attachment_2043" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.dotnetthoughts.net/wp-content/uploads/2011/11/attachprocess.jpg"><img class="size-medium wp-image-2043" title="Attach Windows Live Writer to Visual Studio" src="http://www.dotnetthoughts.net/wp-content/uploads/2011/11/attachprocess-300x190.jpg" alt="Attach Windows Live Writer to Visual Studio" width="300" height="190" /></a><p class="wp-caption-text">Attach Windows Live Writer to Visual Studio</p></div>
<p>Happy Programming.</p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2011/11/16/how-to-create-a-windows-live-writer-plugin-using-c-part-1/" title="Permanent link to How to create a Windows Live writer plugin using C# Part 1">How to create a Windows Live writer plugin using C# Part 1</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/11/19/how-to-create-a-windows-live-writer-plugin-using-c-part-2/" title="Permanent link to How to create a Windows Live writer plugin using C# Part 2">How to create a Windows Live writer plugin using C# Part 2</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/08/03/windows-7-sdk-installation-success-or-error-status-1603/" title="Permanent link to Windows 7 SDK Installation success or error status: 1603">Windows 7 SDK Installation success or error status: 1603</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/06/02/how-to-integrate-fxcop-to-visual-studio-2010-professional/" title="Permanent link to How to integrate FxCop to Visual Studio 2010 Professional">How to integrate FxCop to Visual Studio 2010 Professional</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2009/06/18/debugging-windows-services/" title="Permanent link to Debugging Windows Services">Debugging Windows Services</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/11/20/how-to-debug-windows-live-writer-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

