<?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; Windows 7</title>
	<atom:link href="http://www.dotnetthoughts.net/tag/windows-7/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotnetthoughts.net</link>
	<description>a dotnet developer&#039;s technical blog</description>
	<lastBuildDate>Wed, 08 Feb 2012 03:18:03 +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>Fuslogvw.exe and diagnosing .NET assembly binding issues</title>
		<link>http://www.dotnetthoughts.net/2012/02/05/fuslogvw-exe-and-diagnosing-net-assembly-binding-issues/</link>
		<comments>http://www.dotnetthoughts.net/2012/02/05/fuslogvw-exe-and-diagnosing-net-assembly-binding-issues/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 03:08:16 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 4.0]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Assembly Binding Logviewer]]></category>
		<category><![CDATA[Fusion Log Viewer]]></category>
		<category><![CDATA[FUSLOGVW.exe]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2347</guid>
		<description><![CDATA[Yesterday while working with NUnit, I got an exception like this It was working fine day before yesterday, and I didn&#8217;t modified any system settings, so I didn&#8217;t understand what went wrong. Instead of looking into more details, I reinstalled &#8230; <a href="http://www.dotnetthoughts.net/2012/02/05/fuslogvw-exe-and-diagnosing-net-assembly-binding-issues/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday while working with NUnit, I got an exception like this</p>
<div id="attachment_2348" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2348" title="System.IO.FileLoadException : Could not load file or assembly 'nunit.framework, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)For further information, use the Exception Details menu item." src="http://www.dotnetthoughts.net/wp-content/uploads/2012/02/nunit_1-300x167.jpg" alt="System.IO.FileLoadException : Could not load file or assembly 'nunit.framework, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)For further information, use the Exception Details menu item." width="300" height="167" /><p class="wp-caption-text">System.IO.FileLoadException : Could not load file or assembly &#39;nunit.framework, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)For further information, use the Exception Details menu item.</p></div>
<p style="text-align: justify;">It was working fine day before yesterday, and I didn&#8217;t modified any system settings, so I didn&#8217;t understand what went wrong. Instead of looking into more details, I reinstalled NUnit, but it didn&#8217;t worked. <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Then I tried with NUnit console application, and it was working fine. <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So I come to know, it was not NUnit problem. Then I tried to diagnose the problem, using Fusion Log Viewer. (FUSLOGVW.exe). From <a href="http://msdn.microsoft.com/en-us/library/e74a18c4(v=vs.100).aspx">MSDN</a> <em>The Assembly Binding Log Viewer displays details for assembly binds. This information helps you diagnose why the .NET Framework cannot locate an assembly at run time. These failures are usually the result of an assembly deployed to the wrong location, a native image that is no longer valid, or a mismatch in version numbers or cultures. The common language runtime&#8217;s failure to locate an assembly typically shows up as a TypeLoadException in your application</em>.You can launch FUSLOGVW.exe, from Visual Studio command prompt, or from Programs &gt; Microsoft Windows SDK v7.1 &gt; Fusion Log Viewer. If your OS is UAC enabled, make sure you are running Fusion Log Viewer as Administrator, otherwise few settings will be disabled. You also need to modify few settings of Fusion Log Viewer for enabling the Assembly binding logging. Click on the settings button, Enable Log all binds to disk and Custom log path, and provide a path in the textbox for storing the log files.</p>
<div id="attachment_2349" class="wp-caption aligncenter" style="width: 241px"><img class="size-full wp-image-2349" title=" Fusion Log Viewer - Settings" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/02/flv_settings.jpg" alt=" Fusion Log Viewer - Settings" width="231" height="272" /><p class="wp-caption-text">Fusion Log Viewer - Settings</p></div>
<p>After launching Fusion Log Viewer run the application to reproduce the issue.</p>
<div id="attachment_2350" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2350" title=" Fusion Log Viewer - All binding details" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/02/fusionlogviewer-300x148.jpg" alt=" Fusion Log Viewer - All binding details" width="300" height="148" /><p class="wp-caption-text">Fusion Log Viewer - All binding details</p></div>
<p style="text-align: justify;">After you getting the error, click Refresh button of Fusion Log Viewer, it will display binding details in the list view and you can double click on each item and find the exact issue. In my scenario, I some how copied some old NUnit Framework assembly to the location of test assembly, and NUnit GUI application was trying to load that assembly instead of the valid one. I removed the assembly and it started working fine.</p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><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/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/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/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/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>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/02/05/fuslogvw-exe-and-diagnosing-net-assembly-binding-issues/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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/2012/02/05/fuslogvw-exe-and-diagnosing-net-assembly-binding-issues/" title="Permanent link to Fuslogvw.exe and diagnosing .NET assembly binding issues">Fuslogvw.exe and diagnosing .NET assembly binding issues</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/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/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>
</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>PSR &#8211; Problem Step Recorder &#8211; Free Windows Screen Recording tool</title>
		<link>http://www.dotnetthoughts.net/2011/11/30/psr-problem-step-recorder-free-windows-screen-recording-tool/</link>
		<comments>http://www.dotnetthoughts.net/2011/11/30/psr-problem-step-recorder-free-windows-screen-recording-tool/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 03:10:18 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Free Windows Screen Recording tool]]></category>
		<category><![CDATA[Problem Step Recorder]]></category>
		<category><![CDATA[PSR]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2113</guid>
		<description><![CDATA[Problem Step Recorder is a handy utility from Microsoft helps to automatically capture the steps you take on a computer, including a text description of where you clicked and a picture of the screen during each click (called a screen &#8230; <a href="http://www.dotnetthoughts.net/2011/11/30/psr-problem-step-recorder-free-windows-screen-recording-tool/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Problem Step Recorder is a handy utility from Microsoft helps to automatically capture the steps you take on a computer, including a text description of where you clicked and a picture of the screen during each click (called a screen shot). Once you capture these steps, you can save them to a file that can be used by a support professional or someone else helping you with a computer problem. Click here for <a href="http://technet.microsoft.com/en-us/windows/dd320286">Problem Steps Recorder Overview</a>. You can launch psr from <em>Start Menu &gt; Run and type <strong>psr</strong></em>.</p>
<div class="betterrelated none"><p>No related content found.</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/11/30/psr-problem-step-recorder-free-windows-screen-recording-tool/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debugging NUnit Tests in Visual Studio 2010</title>
		<link>http://www.dotnetthoughts.net/2011/11/02/debugging-nunit-tests-in-visual-studio-2010/</link>
		<comments>http://www.dotnetthoughts.net/2011/11/02/debugging-nunit-tests-in-visual-studio-2010/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 17:52:03 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 4.0]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[NUnit]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=1919</guid>
		<description><![CDATA[If you are using NUnit with .Net 4.0 assemblies in Visual Studio 2010, while debugging, you will get this warning from breakpoints locations, &#8220;The breakpoint will not currently be hit. No symbols have been loaded for this document&#8221; This issues &#8230; <a href="http://www.dotnetthoughts.net/2011/11/02/debugging-nunit-tests-in-visual-studio-2010/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are using NUnit with .Net 4.0 assemblies in Visual Studio 2010, while debugging, you will get this warning from breakpoints locations, &#8220;The breakpoint will not currently be hit. No symbols have been loaded for this document&#8221;</p>
<div id="attachment_1920" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.dotnetthoughts.net/wp-content/uploads/2011/11/break_point.jpg"><img src="http://www.dotnetthoughts.net/wp-content/uploads/2011/11/break_point-300x44.jpg" alt="The breakpoint will not currently be hit. No symbols have been loaded for this document" title="The breakpoint will not currently be hit. No symbols have been loaded for this document" width="300" height="44" class="size-medium wp-image-1920" /></a><p class="wp-caption-text">The breakpoint will not currently be hit. No symbols have been loaded for this document</p></div>
<p>This issues is because of NUnit loads up in .Net 2.0 and then has to load up the modules in 4.0, so does so under the agent process. The solutionis to force NUnit to run under .Net 4.0. This will can done by modifing the NUnit.exe.config file.</p>
<pre class="brush: csharp; title: ; notranslate">
&lt;startup&gt;
	&lt;requiredRuntime version=&quot;v4.0.30319&quot; /&gt;
&lt;/startup&gt;
</pre>
</p>
<p>This will fix the issue, also you are able to debug with breakpoints. If you are running Windows 7, make sure you are opening the NUnit.exe.config file as Administrator. And if your OS is 64 bit, you should modify nunit-x86.exe.config file.</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/2012/02/05/fuslogvw-exe-and-diagnosing-net-assembly-binding-issues/" title="Permanent link to Fuslogvw.exe and diagnosing .NET assembly binding issues">Fuslogvw.exe and diagnosing .NET assembly binding issues</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/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/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>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/11/02/debugging-nunit-tests-in-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Visual Studio Files As Administrator</title>
		<link>http://www.dotnetthoughts.net/2011/10/11/open-visual-studio-files-as-administrator/</link>
		<comments>http://www.dotnetthoughts.net/2011/10/11/open-visual-studio-files-as-administrator/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 06:13:29 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[UAC]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Visual Studio Files]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=1845</guid>
		<description><![CDATA[Debugging WCF service requires to run the visual studio as Administrator, you can do it by right clicking the Visual Studio shortcut, Select Properties, and in Shortcut tab, click on Advanced button, it will display Advanced Properties, check the Run &#8230; <a href="http://www.dotnetthoughts.net/2011/10/11/open-visual-studio-files-as-administrator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Debugging WCF service requires to run the visual studio as Administrator, you can do it by right clicking the Visual Studio shortcut, Select Properties, and in Shortcut tab, click on Advanced button, it will display <span style="text-decoration: underline;">Advanced Properties</span>, check the <span style="text-decoration: underline;">Run as administrator</span> option.</p>
<div id="attachment_1846" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.dotnetthoughts.net/wp-content/uploads/2011/10/advanced_properties.png"><img class="size-medium wp-image-1846" title="Advanced Properties" src="http://www.dotnetthoughts.net/wp-content/uploads/2011/10/advanced_properties-300x228.png" alt="Advanced Properties" width="300" height="228" /></a><p class="wp-caption-text">Advanced Properties</p></div>
<p>But this option will not work, when you are opening a project or solution by double clicking on the solution file. Here is the tip which will help you to open Visual Studio files with Administrator option. All the solution files are opening using a small utility called VSLauncher.exe, which can be found in<span style="text-decoration: underline;"> C:\Program Files (x86)\Common Files\microsoft shared\MSEnv</span> folder. Right click on the executable, select Properties and select the Compatibility tab, Check the <span style="text-decoration: underline;">Run this program as an Administrator</span>, under Privilege level. Apply the settings and click OK. Now open any solution, Windows will show the UAC dialog.</p>
<div id="attachment_1847" class="wp-caption aligncenter" style="width: 245px"><a href="http://www.dotnetthoughts.net/wp-content/uploads/2011/10/properties.png"><img class="size-medium wp-image-1847" title="VSLauncher.exe Properties" src="http://www.dotnetthoughts.net/wp-content/uploads/2011/10/properties-235x300.png" alt="VSLauncher.exe Properties" width="235" height="300" /></a><p class="wp-caption-text">VSLauncher.exe Properties</p></div>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2008/05/07/increase-your-productivity-using-visual-studio-code-snippets/" title="Permanent link to Increase your productivity using Visual Studio code snippets">Increase your productivity using Visual Studio code snippets</a>  </li>
<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/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/2012/02/05/fuslogvw-exe-and-diagnosing-net-assembly-binding-issues/" title="Permanent link to Fuslogvw.exe and diagnosing .NET assembly binding issues">Fuslogvw.exe and diagnosing .NET assembly binding issues</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/12/15/how-to-integrate-nunit-with-visual-studio-2008/" title="Permanent link to How to integrate Nunit with Visual Studio 2008">How to integrate Nunit with Visual Studio 2008</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/10/11/open-visual-studio-files-as-administrator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

