2012-01-26 78 views
0

我創建了一個示例應用程序,我想在解決方案資源管理器中使用 Visual Studio發佈按鈕發佈該應用程序,但是當我這樣做時,出現以下錯誤 我必須做些什麼來避免?如何發佈應用程序

Error 1 Publish failed with 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)).

回答

0

,如果不是必需的,因爲在這個msdn social post報道您可以禁用COM知名度。

右鍵單擊項目,設置,應用程序,程序集信息,取消標記使com可見。

另一種方法是在this post:

After a bit of investigation, I found that the registry is somehow corrupted, and the solution is to re-register DLL.

~ Run [ Command Prompt ] (You will need to use the Run as administrator option)

~ regsvr32 actxprxy.dll