<?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>David&#039;s Blog &#187; management studio</title>
	<atom:link href="http://www.davidmoore.info/tag/management-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidmoore.info</link>
	<description>Computer says no</description>
	<lastBuildDate>Thu, 26 Jan 2012 21:49:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Solution: Explorer open each folder in same window error and SQL Management Studio, IE and Team Explorer errors</title>
		<link>http://www.davidmoore.info/2009/08/19/solution-explorer-open-each-folder-in-same-window-error-and-sql-management-studio-ie-and-team-explorer-errors/</link>
		<comments>http://www.davidmoore.info/2009/08/19/solution-explorer-open-each-folder-in-same-window-error-and-sql-management-studio-ie-and-team-explorer-errors/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 08:45:01 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[actxprxy.dll]]></category>
		<category><![CDATA[explorer]]></category>
		<category><![CDATA[ieproxy.dll]]></category>
		<category><![CDATA[iserviceprovider]]></category>
		<category><![CDATA[management studio]]></category>
		<category><![CDATA[no such interface supported]]></category>
		<category><![CDATA[open each folder]]></category>
		<category><![CDATA[same window]]></category>
		<category><![CDATA[sourcegear]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[team explorer]]></category>
		<category><![CDATA[vault]]></category>
		<category><![CDATA[{B8DA6310-E19B-11D0-933C-00A0C90DCAA9}]]></category>
		<category><![CDATA[{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}]]></category>

		<guid isPermaLink="false">http://www.davidmoore.info/?p=206</guid>
		<description><![CDATA[Problem(s):

When attempting to open a folder in Windows Explorer, the folder opens in a new window, even if &#8220;Open each folder in the same window&#8221; is selected in Folder Options.
Some links in Internet Explorer don&#8217;t open correctly
Microsoft SQL Server Management Studio: An error with a message like &#8220;Unable to cast COM object of type &#8216;System.__ComObject&#8217; to <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.davidmoore.info/2009/08/19/solution-explorer-open-each-folder-in-same-window-error-and-sql-management-studio-ie-and-team-explorer-errors/">Solution: Explorer open each folder in same window error and SQL Management Studio, IE and Team Explorer errors</a></span>]]></description>
			<content:encoded><![CDATA[<h2>Problem(s):</h2>
<ul>
<li>When attempting to open a folder in <strong>Windows Explorer</strong>, the folder opens in a new window, even if &#8220;<strong>Open each folder in the same window</strong>&#8221; is selected in Folder Options.</li>
<li>Some links in <strong>Internet Explorer</strong> don&#8217;t open correctly</li>
<li><strong>Microsoft SQL Server Management Studio</strong>: An error with a message like &#8220;Unable to cast COM object of type &#8216;System.__ComObject&#8217; to interface type &#8216;Microsoft.VisualStudio.OLE.Interop.<strong>IServiceProvider&#8217;</strong>. This operation failed because the QueryInterface call on the COM component for the interface with IID &#8216;{6D5140C1-7436-11CE-8034-00AA006009FA}&#8217; failed due to the following error: <strong>No such interface supported</strong> (Exception from HRESULT: 0&#215;80004002 (E_NOINTERFACE)). (Microsoft.VisualStudio.OLE.Interop)</li>
<li><strong>Visual Studio Team Explorer</strong>: When browsing using the Team Explorer window, you may get COM errors similar to those in the SQL Management Studio error above</li>
</ul>
<h2>Explanation:</h2>
<p>I&#8217;m not sure of the exact details, but this is what I think I&#8217;ve found. Perhaps someone at Microsoft would correct or elaborate on this.</p>
<p>Previously, <strong>actxprxy.dll</strong> (ActiveX Interface Marshaling Library) was used as the proxy for a multitude of system interfaces, such as IShellFolder and IServiceProvider.</p>
<p>In Windows 7 (and probably Vista also), the GUID of this library has changed from <em>{B8DA6310-E19B-11D0-933C-00A0C90DCAA9}</em> to <em>{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}</em></p>
<p>Secondly, there is also a new Proxy/Stub provider found in <strong>ieproxy.dll</strong> of Internet Explorer (IE ActiveX Interface Marshaling Library). Some interfaces that previously used actxprxy.dll are now registered to use ieproxy.dll.</p>
<p>Now various problematic software (such as Vault 3.x) will try to register against actxproxy using the old GUID, and for interfaces now proxied by ieproxy.dll.</p>
<h2>Solution</h2>
<h3>Solution 1</h3>
<p>You must use regsvr32 to re-register the two proxy DLLs, then <strong>reboot</strong></p>
<p>You can use the below batch file to do this.</p>
<p>You must run this batch file with administrative privileges (right click on the file and choose <strong>Run as administrato</strong>r):</p>
<p><a href="http://www.davidmoore.info/wp-content/uploads/2009/08/RunAsAdministrator.png" ><img class="alignnone size-full wp-image-209" title="RunAsAdministrator" src="http://www.davidmoore.info/wp-content/uploads/2009/08/RunAsAdministrator.png" alt="RunAsAdministrator" width="239" height="96" /></a></p>
<p>If you don&#8217;t run the batch file as an administrator, you will get an error as pictured:</p>
<p><a href="http://www.davidmoore.info/wp-content/uploads/2009/08/ActxprxyRegisterError.png" ><img class="alignnone size-full wp-image-208" title="ActxprxyRegisterError" src="http://www.davidmoore.info/wp-content/uploads/2009/08/ActxprxyRegisterError.png" alt="ActxprxyRegisterError" width="366" height="199" /></a></p>
<p>[<a href="http://www.davidmoore.info/wp-content/uploads/2009/12/RegisterActxprxyAndIeproxy.zip" onclick="javascript:pageTracker._trackPageview('/downloads/wp-content/uploads/2009/12/RegisterActxprxyAndIeproxy.zip');">Download RegisterActxprxyAndIeproxy.cmd</a>]</p>
<p>RegisterActxprxyAndIeproxy.cmd source:</p>
<pre>@echo off

:: 32 bit and 64 bit
IF EXIST "%SystemRoot%\System32\actxprxy.dll" "%SystemRoot%\System32\regsvr32.exe" "%SystemRoot%\System32\actxprxy.dll"
IF EXIST "%ProgramFiles%\Internet Explorer\ieproxy.dll" "%SystemRoot%\System32\regsvr32.exe" "%ProgramFiles%\Internet Explorer\ieproxy.dll"

:: 64 bit only (32bit on 64 bit)
IF EXIST "%WinDir%\SysWOW64\actxprxy.dll" "%WinDir%\SysWOW64\regsvr32.exe" "%WinDir%\SysWOW64\actxprxy.dll"
IF EXIST "%ProgramFiles(x86)%\Internet Explorer\ieproxy.dll" "%WinDir%\SysWOW64\regsvr32.exe" "%ProgramFiles(x86)%\Internet Explorer\ieproxy.dll"</pre>
<p><strong>Don&#8217;t forget to reboot</strong> after re-registering the DLLs!</p>
<p><em>Edit: The script has been updated to support 64-bit Windows</em></p>
<h3>Solution 2</h3>
<p>Some people have reported that  the following command may fix the problem when Solution 1 does not work (first mentioned by snir in the comments):</p>
<ol>
<li>Open up a Command Prompt (presumably in Administrator  mode) <strong>Start</strong> &gt; <strong>Programs</strong> &gt; <strong>Accessories</strong> &gt; <strong>Command Prompt</strong></li>
<li>Type in <strong>sfc /scannow</strong> and hit <strong>Enter</strong></li>
</ol>
<p>For those for which this solution works, I&#8217;d like for someone to find what file(s) were affected and repaired, so we can get a more specific solution and see if it&#8217;s related to Solution 1.</p>
<p>This solution was one I looked at <em>before</em> I made this post which did not work for me.</p>
<p><em> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidmoore.info/2009/08/19/solution-explorer-open-each-folder-in-same-window-error-and-sql-management-studio-ie-and-team-explorer-errors/feed/</wfw:commentRss>
		<slash:comments>151</slash:comments>
		</item>
	</channel>
</rss>

