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

Вы можете отключить видимость COM, если не требуется, как сообщалось в этом msdn social post.

Щелкните правой кнопкой мыши проект, настройки, приложение, информацию о сборке, снимите отметку make 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

 Смежные вопросы

  • Нет связанных вопросов^_^