无法将类型为'System .__ ComObject'的COM对象转换为接口类型为'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'

问题描述:

在Windows 7上安装Visual Studio 2008和SQL Server 2008之后,连接时出现以下错误一个SQL管理工作室的服务器:无法将类型为'System .__ ComObject'的COM对象转换为接口类型为'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'

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)). (Microsoft.VisualStudio.OLE.Interop)

我见过博客文章,建议重新注册actprxy.dll,但这没有效果。任何人都知道如何解决这个问题?

+0

我有一个类似的错误,当我尝试用ClickOnce发布(没有SQL服务器参与) – 2010-04-09 00:11:45

actprxy.dll也没有为我工作。我发现,工作here

regsvr32 "C:\Program Files\Internet Explorer\ieproxy.dll"

if you are running 64 bit windows, try this:

regsvr32 "C:\Program Files (x86)\Internet Explorer\ieproxy.dll"

+2

我遇到这个问题,在新的(如2012年4月)的解决方案Visual Studio 11测试版。运行这一步为我解决了它。谢谢! – 2012-04-25 21:48:15

+3

+1保存我重新安装管理工作室;谢谢! – WestDiscGolf 2012-07-12 10:46:05

+2

有SQL 2008 R2 SMS的这个问题....上面的解决办法固定它! – larryr 2013-06-05 15:41:50