How to publish an application

691 Views Asked by At

I created a sample application and i wanted to publish that application using the Visual Studio publish button in the solution explorer but when i do so i am getting the below error what must i do to avoid that?

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)).

2

There are 2 best solutions below

0
On

You can disable the COM visibility if not required, as reported in this msdn social post.

Right click the project, settings, application, assembly information, unmark make com visible.

Another approach is listed in 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

0
On

Looks like an environment issue- try re- registering actprxy.dll and/or ieproxy.dll