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

40 comments to Solution: Explorer open each folder in same window error and SQL Management Studio, IE and Team Explorer errors

  • Scott Newman

    Thank you!! This was very annoying.

  • JUozas

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

  • Stacey

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

  • backwardshoop

    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.

  • Stacey

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

  • Stacey

    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.

  • Stacey

    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.

  • Benjamin

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

  • Rudolf

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

  • pin0y hEny0

    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! ^_^

  • Thomz

    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!

  • Mark Hickin

    Brilliant. Thank you.

  • kumar pdv

    Thank you very much. It helps me a lot.

  • John

    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.

  • batfireman

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

  • Bakheit

    This is great! Thanks..

  • David

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

  • Daniel

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

    THANKS!

  • fotocellar

    Thank you very much. Finally it solved my problem.

  • Annon

    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.

  • alan1mtnview

    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!!

  • Flummoxed

    I just wanted to echo alan1mtnview. I spent half a day trying to fix the empty Devices and Printers window issue. Your fix did the trick. Many thanks!

  • Hi,

    i was having this “folders open in new window
    despite folder option says same window” problem, and nobody could help, not even at Microsoft.
    These loads of windows killed my nerves.

    I got weird hints, none ever helped.

    To make it short : YOUR HINT IS THE SOLUTION !
    It worked.

    Yes, i had the additional problem that Internet Explorer wouldnt start at all.
    (That was not too bad ’cause i use Firefox anyway).
    Since your solution mentioned this, i gave it a try, and now all my problems are gone !

    I think this is going to be a problem for quite a while, and this solution was very valuable for me (and others).
    (Though i dont really understand the connection between IE and folder options).

    However, your solution worked, my folders
    work as they should now on doubleclick again,
    and so a great hassle is gone.

    THANK YOU VERY MUCH !

    regards from germany,

    Martin

  • please let me repeat, so others can understand when this solution will help, ’cause i had all three problems at the same time (probably because of the same reason as explained here in the article) :

    this solution works at least for these problems (among others) :

    1.) folders open in a new windows when doubleclicked despite the folder options say “open in the same window”.
    the folder options only work when you right click on a folder and then choose “open” from the right-click-menu.
    but when you double-left-click on a folder, a new windows is opened every time.

    2.) internet explorer does not start at all
    (or has problems with at least some links).

    3.) the control-panel folder “printers and other devices” is totally empty, it shows nothing in it but a blank page.

    i had all those three problems, and all three
    were gone after i did what this article suggests.

    i keep this .cmd file in case i will need it again (and i am afraif this will happen).

    thank you, david, i cant value this solution enough!

    martin

  • JuanKalayaan

    big big thanks.. you rock!

  • Brad

    I. Love. You. Thank you so much. I’ve tried so many other solutions and this is the only one that worked to solve this f**king annoying problem!

  • Asad

    Sorry .. but it isnt working…

    i tried it many times but it didnt work. m using win7 64 ultimate

    HAAAAAAAAAAAAAAAAAAAAALLLLLLLLLLLLLLLPPPPPPPPPPP

  • Constref

    I had the same problem with Win 7 x64, none of the solution above worked. So I figured out, that it has definitely to do with my Internet Explorer 8 installation. Uninstalling / Reinstalling didn’t help, but then I read something about “sfc /scannow”. I then renamed my two IE program folgers (C:\Program Files\Internet Explorer and C:\Program Files (x86)\Internet Explorer) into “Internet Explorer_” an ran (with admin rights) “sfc /scannow”. The programm detected a corrupt IE installation, repaired it and after rebooting the computer the window behaviour was all right again! No problems anymore!

  • Juan Ramón

    Your solution is good (certainly, better than nothing), but far from perfect as to the Windows Explorer is concerned. After using your batch, apparently Explorer behaves as always, but it doesn’t. It keeps opening new windows although displayed on the same one (as if there was only one). But if you check after browsing several folders, the explorer icon on the task bar shows plenty of new windows, not just one. The annoyance is that they need to be closed, one by one, clicking on the X button many times. Is there any other way to get Explorer back to normal? Thanks a lot for your help, anyway.
    JRMT

    • David

      Interesting. This fix used to work perfectly, at least in my situation on computers at work. But your comment and Constref’s comment make me think someone recent has happened (Windows Update, IE update?) or some additional piece of software is now in the mix. Have you tried Constref’s suggestion?

      • Juan Ramón

        I have finally solved my problem by running these two entries in cdm, “run as administrator”:
        – regsvr32 %SystemRoot%\System32\actxprxy.dll
        – regsvr32 %ProgramFiles%\Internet Explorer\ieproxy.dll
        Then reboot.

        It sounds weird but the same instructions didn’t work when using David’s batch. Anyway, he must be credited for the fix, which is a very good finding.

  • Juan Ramón

    Yes, thanks. I have tried “sfc /scannow” and everything seems to be normal. Please, note that my problems are only with Windows Explorer. But, replying to your question, both Windows Update and IE update are blocked in my computer (don’t like to have new updates installed if I am not sure about them). No other piece of software, which I know, is interfering with the system. Any other hint? Thanks a lot, anyway.

  • subas

    Thanks you very mucH, i was really so fade off …
    Finally, this solution helped me a lot.
    Once again, thank you very much .

  • Steve

    Cheers mate, this was driving me mad. Sorted the problem straight-away.
    Thanks again.

  • Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!
    good tutorial….100% work!!!!^_^

  • dean

    omg thank you so much this has been bugging me for so long i had to stop making youtube vids because of it but nw im going to make a vid of how to fix it thanks

  • Robert

    Thank you very much, I was very annoyed by this shit

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>