2009-10-31 190 views
12

在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

回答

25

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

相關問題