2012-01-26 44 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