无法将类型为“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()
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吧、没辙了
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
试了 没用!
C:\windows\system32\regsvr32.exe" /u actxprxy.dll 这个在执行后 提示目录名无效
试了 没用!
C:\windows\system32\regsvr32.exe" /u actxprxy.dll 这个在执行后 提示目录名无效你看看 这个 C:\Program Files (x86)目录下,有没有有internet explorer这个目录