无法将类型为“System.__ComObject”的 COM 对象强制转换为接口类型“Microsoft.VisualStudio.OLE.Interop.IServiceProvider”。此操作失败的原因是对 IID 为“{6D5140C1-7436-11CE-8034-00AA006009FA}”的接口的 COM 组件调用 QueryInterface 因以下错误而失败: 不支持此接口 (异常来自 HRESULT:0x80004002 (E_NOINTERFACE))。 (Microsoft.VisualStudio.OLE.Interop)
------------------------------
程序位置:   在 Microsoft.VisualStudio.OLE.Interop.IServiceProvider.QueryService(Guid& guidService, Guid& riid, IntPtr& ppvObject)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ServiceProvider.GetService(Guid guid, Type serviceType)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ServiceProvider.GetService(Type serviceType)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ShellWindowPaneUserControl.GetService(Type svcClass)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.System.IServiceProvider.GetService(Type serviceType)
   在 System.ComponentModel.Design.ServiceContainer.GetService(Type serviceType)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.GetService(Type serviceType)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NodeContext.GetService(Type serviceType)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItemWithQuery(IList nodes, INodeInformation source, INavigableItem sourceItem, String urnQuery, Boolean registerBuilder, Boolean registerBuiltItems)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItem(IList nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.Build(INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.GetChildren()
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ExplorerHierarchyNode.BuildChildren()

解决方案 »

  1.   

    1、regsvr32 "C:\Program Files\Internet Explorer\ieproxy.dll"
    2、如果是64位,用:regsvr32 "C:\Program Files (x86)\Internet Explorer\ieproxy.dll"
    如果不行:
    1、C:\windows\system32\regsvr32.exe" /u actxprxy.dll
    2、"C:\windows\system32\regsvr32.exe" actxprxy.dll还不行的话:重装windows再装sqlserver吧、没辙了
      

  2.   

    尝试一下这个:32 bit
    regsvr32 "C:\Program Files\Internet Explorer\ieproxy.dll"64 bit
    regsvr32 "C:\Program Files (x86)\Internet Explorer\ieproxy.dll"======
    如果還不行,請再執行
    C:\windows\system32\regsvr32.exe" /u actxprxy.dll
      

  3.   

    这个的可能原因是:由于C:\Program Files (x86)目录下没有internet explorer这个目录,也就是说IE浏览器目录被删掉了,所导致的。可以尝试:复制了一个XP上的IE8到此目录下,SQL不会出现错误提示了
      

  4.   


    试了 没用!
    C:\windows\system32\regsvr32.exe" /u actxprxy.dll 这个在执行后 提示目录名无效
      

  5.   


    试了 没用!
    C:\windows\system32\regsvr32.exe" /u actxprxy.dll 这个在执行后 提示目录名无效你看看 这个 C:\Program Files (x86)目录下,有没有有internet explorer这个目录
      

  6.   

    我更想知道你安装了什么?做了什么操作?我从学sqlserver到现在6年多,装了不下100次,没发生这些问题。是不是你做过什么操作导致的?
      

  7.   

    重新执行SQL2005安装程序,选修复模式重装一次SQL实例试试.