Задайте вопросЗадайте вопрос
 

ОтвеченоObject Explorer/Server Explorer Error

  • 30 октября 2005 г. 0:43Nicholas Buse Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    I have just installed the released VS2005 as well as the released SQL2005.  When ever I try to browse my SQL Server with either the Object Explorer in MS SQL Server Management Studio or the Server Explorer in VS2005 I get the following error:

    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: 0x80004002 (E_NOINTERFACE)).

    Does any one have possible solutions for me? Any help would be greatly appreciated.

    --Nick

Ответы

  • 2 ноября 2005 г. 18:49Nicholas Buse Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    I have a solution for the problem, but I still do not know why it was a problem to begin with. It seems that the IServiceProvider COM object is not registered on the system.  I went to a system that this was working properly and exported the following registry entries:

    [Copy from HERE]
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}]
    @="IServiceProvider"

    [HKEY_CLASSES_ROOT\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}\NumMethods]
    @="4"

    [HKEY_CLASSES_ROOT\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}\ProxyStubClsid32]
    @="{B8DA6310-E19B-11D0-933C-00A0C90DCAA9}"

    [HKEY_CURRENT_USER\Software\Classes\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}]
    @="IServiceProvider"

    [HKEY_CURRENT_USER\Software\Classes\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}\NumMethods]
    @="4"

    [HKEY_CURRENT_USER\Software\Classes\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}\ProxyStubClsid32]
    @="{B8DA6310-E19B-11D0-933C-00A0C90DCAA9}"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}]
    @="IServiceProvider"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}\NumMethods]
    @="4"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}\ProxyStubClsid32]
    @="{B8DA6310-E19B-11D0-933C-00A0C90DCAA9}"

    [ ... TO HERE]

    Merging them on the broken system fixed the problem.  I would still appreciate anyone shedding some light on the situation, but it works for now.

    --Nick
  • 18 сентября 2009 г. 15:55fr0man Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    I'm running VS2008, SQL Server Management Studio 2005 and 2008 (both broken) on Windows 7 64-Bit.  None of these registry hacks worked for me, but here's what did:

    1.  Install SQL Server
    2.  Install the broken Vault Client (for me this was 4.0.6, what we use here at work).  This hosed my SQL-Server Object Explorer, both 2005 and 2008.
    3.  Install the lastest Vault 4.x client (4.1.4 I believe).  This worked, and SQL-Server worked, but our Vault Server version wouldn't work with the 4.1.4 client.
    4.  Uninstall the latest client using Add/Remove Programs.
    5.  Reinstall the broken Vault Client (4.0.6) while leaving an instance of SQL-Server Management Studio open.  

    Everything worked after doing this, and so far it's worked on two different boxes for me.  I don't know if leaving SQL-Server Management Studio open was a part of the solution or not, but I've lost like 2 working days to this problem and wasn't willing to try the steps I listed without it open.


    Alternate Solution that also worked;
    1.  Install Vault 
    2.  Make a copy of the Program Files(x86)\Sourcegear\Vault Client folder
    3.  Uninstall Vault using Add/Remove Programs
    4.  Run Vault out of the copied folder.

    This actually worked really well for me, but I couldn't integrate Vault into Visual Studio, but I don't usually run it that way anyway.  I had to figure out the first fix when a coworker upgraded to Windows 7 and he does use Vault in VS.

    Hope this helps someone.  


    Do not go gentle into that food fight
  • 12 мая 2009 г. 21:30Twheet Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    Try removing ie8 http://support.microsoft.com/kb/957700
    This worked on a win 2k8 A/P cluster running sql 2008
    • Предложено в качестве ответаTPaling 18 мая 2009 г. 11:45
    • Помечено в качестве ответаSQLUSAОтвечающий20 ноября 2009 г. 8:23
    •  
  • 9 сентября 2009 г. 20:38SeanJ_2173 Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено

    This happend to me inside of SQL Server 2008 Management Studio (SSMS) running on Windows 7.  Not sure if this was related, but it was after installing VS 2005 and SQL Server 2005.  To fix it, I exported and imported the following out of my other W7 machine.

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}]
    @="IServiceProvider"

    [HKEY_CLASSES_ROOT\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}\NumMethods]
    @="4"

    [HKEY_CLASSES_ROOT\Interface\{6D5140C1-7436-11CE-8034-00AA006009FA}\ProxyStubClsid32]
    @="{A4A1A128-768F-41E0-BF75-E4FDDD701CBA}"

    • Предложено в качестве ответаPaulTubb 10 сентября 2009 г. 9:38
    • Помечено в качестве ответаSQLUSAОтвечающий20 ноября 2009 г. 8:22
    •  
  • 11 мая 2009 г. 13:05NinjaNine Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено

    What worked for me was to first deregister the dll then register it again

    so i first did this  C:\windows\system32 > regsvr32.exe /u actxprxy.dll

    and then register it again C:\windows\system32 > regsvr32.exe actxprxy.dll

    Hope this helps.

    • Предложено в качестве ответаTwheet 12 мая 2009 г. 21:28
    • Помечено в качестве ответаSQLUSAОтвечающий20 ноября 2009 г. 8:23
    •  
  • 5 ноября 2009 г. 11:36[e21] Jan Wikholm Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    Woah. Thank you for this!

    It never occurred to me that Vault client could be causing this since it had worked A-OK in XP and Vista.

    I had installed Vault when installing my 64-bit Win 7 as per the normal routine of setting up my environment.
    Today I tried if the SQL 2008 R2 CTP would bring any luck in regards to this problem - it didn't.

    But then I noticed your post about a possible connection with Vault.

    I simply uninstalled the Vault client and now SQL Manager works.
    (I did have SQL manager open during uninstall. I am not sure if that helped)

    Thank you!
  • 18 ноября 2009 г. 22:52Jarom Jones Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено

    I am running Win7 HP 64-bit, VS 2008 SP1, and SQL DEV 2008 SP1.  I also have SourceGear Vault Client 3.5.  Crazy it conflicted.

    I made a copy of my Vault Client folder...then uninstalled it from Program Files (x86).  As soon as I did this my SSMS browsing worked again.  I then copied the Vault Client folder back into Program Files (x86)...created a shortcut on my Taskbar and everything works.

    Thanks fr0man and Jan for your comments!  I am happy to have this working.  ~Jarom

Все ответы