msgbartop
Computer says no
msgbarbottom

19 Aug 09 Solution: Explorer open each folder in same window error and SQL Management Studio, IE and Team Explorer errors

Problem(s):

  • When attempting to open a folder in Windows Explorer, the folder opens in a new window, even if “Open each folder in the same window” is selected in Folder Options.
  • Some links in Internet Explorer don’t open correctly
  • Microsoft SQL Server Management Studio: An error with a message like “Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘Microsoft.VisualStudio.OLE.Interop.IServiceProvider’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{6D5140C1-7436-11CE-8034-00AA006009FA}’ failed due to the following error: No such interface supported (Exception from HRESULT: 0×80004002 (E_NOINTERFACE)). (Microsoft.VisualStudio.OLE.Interop)
  • Visual Studio Team Explorer: When browsing using the Team Explorer window, you may get COM errors similar to those in the SQL Management Studio error above

Explanation:

I’m not sure of the exact details, but this is what I think I’ve found. Perhaps someone at Microsoft would correct or elaborate on this.

Previously, actxprxy.dll (ActiveX Interface Marshaling Library) was used as the proxy for a multitude of system interfaces, such as IShellFolder and IServiceProvider.

In Windows 7 (and probably Vista also), the GUID of this library has changed from {B8DA6310-E19B-11D0-933C-00A0C90DCAA9} to {C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}

Secondly, there is also a new Proxy/Stub provider found in ieproxy.dll of Internet Explorer (IE ActiveX Interface Marshaling Library). Some interfaces that previously used actxprxy.dll are now registered to use ieproxy.dll.

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.

Solution

You must use regsvr32 to re-register the two proxy DLLs, then reboot

You can use the below batch file to do this.

You must run this batch file with administrative privileges (right click on the file and choose Run as administrator):

RunAsAdministrator

If you don’t run the batch file as an administrator, you will get an error as pictured:

ActxprxyRegisterError

[Download RegisterActxprxyAndIeproxy.cmd]

RegisterActxprxyAndIeproxy.cmd source:

@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"

Don’t forget to reboot after re-registering the DLLs!

Edit: The script has been updated to support 64-bit Windows

Tags: , , , , , , , , , , , , ,

Reader's Comments

  1. |

    Thank you!! This was very annoying.

  2. |

    Thank YOu very much. IT was very big problem for me, THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!

  3. |

    EXCELLENT catch on the ieproxy dll – the first one didn’t do jack for me but this one finally fixed it.

  4. |

    Thank you. I tried this to solve the issue in SQL Management Studio on new Windows 7 install and it did not help. Does anyone have any other suggestions. I will continue to look.

  5. |

    Backwardshoop, the only other solution I’ve found is to delete your profile and it will get fixed. Not sure though.

  6. |

    After fixing the symptoms with this solution, I launched in to Visual Studio only to find out that the integration piece (source control plug-in is not installed message) from the Vault client is apparently not there. So I went through a re-install, but that didn’t fix it either.

    I can at least run everything in their own windows now, but this has me wanting to back away from Vault as our source control solution.

    Wish I understood more about why this is broken.

  7. |

    http://support.sourcegear.com/viewtopic.php?f=5&t=12680

    Finally figured it out … If you’re using 64-bit Windows 7 – register the ieproxy.dll in the x86 Program Files.

  8. |

    I mus say THANK YOU MAN!
    This problem was so fucking anoying, but I was getting use to it!
    Thank you man, really =)

  9. |

    Thank you! This was very good link and tutorial for me!

  10. |

    whew! DOUBLE THUMBS UP!!!!!!! thnk u man! ur jst a GFT from GOD! hehehe
    it WORKS PERFECTLY!!!! 101% for me, u jst SOLVE my Problem this Night! THnk u and MOre POWER! KEEP UP THE GOOD WORK! ^_^

  11. |

    OMG Thank you so much!

    I have used hours on seaching the internet for a solution, every site i found they told me to do this one:

    regsvr32 “%SystemRoot%\System32\actxprxy.dll”

    Nobody told me to do this as well:

    regsvr32 “%ProgramFiles%\Internet Explorer\ieproxy.dll”

    Thank you !!
    It was so annoying :)
    Thank you man!

  12. |

    Brilliant. Thank you.

  13. |

    Thank you very much. It helps me a lot.

  14. |

    This problem just cropped up for me randomly this afternoon out of nowhere, while I was writing a word document. It’s incredibly frustrating to have every folder opening in its own window and then having to close them all. I’m running Windows 7. Ran the program above, rebooted, didn’t fix it. Ran it again, rebooted again, still didn’t work. Please help! What else can I do? This problem is really pissing me off.

  15. |

    Helped on my WIN 7 pc. Thanks a bunch! Cheers

  16. |

    This is great! Thanks..

  17. |

    @John: Perhaps you have something that keeps running and making the registry changes each time?

    1) Check what programs you have running at startup, or if you suspect it’s Word, any Office add-ins you might have.

    2) You might even want to use something that can tell you when something is trying to change the registry, such as Spybot Search & Destroy.

    3) As for it cropping up randomly, you must have installed something. This problem might not crop up until after a restart so it might have been something you installed a while ago, if you don’t restart often.

    4) System Restore might let you see what’s been installed recently, and see if you can go back to a point where the problem isn’t happening, to help you narrow down what is causing it.

  18. |

    Thank you so much… I searched every forum (including Microsoft) without success! I will now once again enjoy my file browsing!!

    THANKS!

  19. |

    Thank you very much. Finally it solved my problem.

  20. |

    Sorry, it didn’t work for me. I’ll try to run it in safe mode just in case there is a process that is causing the problem.

  21. |

    I won’t embarrass myself by admitting how much time I’ve invested trying to find a fix for this that doesn’t involve a reinstall.
    This apparently also fixes an unrelated (I thought) issue on Win7: The “Devices and Printers” window is empty, with “0″ items listed. I’ve tried various solutions for this as well, with no luck, but on a hunch (insert required Marty Feldman sound byte here) I tried one more time, and whattaya know, it’s fixed too.

    MANY THANKS, NOT JUST FOR THE FIX, BUT FOR THE CONCISE EXPLANATION AS WELL!!

Leave a Comment