Cannot start a COM object of type "System .__ ComObject"

I get the following error when trying to publish an XNA project in Visual Studio 2010.

Error 1 It was not possible to publish with the following error: it is not possible to output a COM object of type "System .__ ComObject" for the interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider. This operation failed because the call to QueryInterface for the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed to complete with the following error: this interface is not supported (exception from HRESULT: 0x80004002 (E_NOINTERFACE) ) 1 1 Asteroids

I tried registering actxprxy.dll and ieproxy.dll as others suggested, but I continue this error.

I get this error with an empty XNA Game template, as well as with the completed XNA game.

I can build and debug the same projects well.

+6
source share
2 answers

There is a discussion stating that this is due to "registry corruption." One comment suggests a β€œnuclear” solution to re-register each OCX and DLL in the System32 folder:

 for %1 in (%windir%\system32\*.dll) do regsvr32 /s %1 for %1 in (%windir%\system32\*.ocx) do regsvr32 /s %1 

Perhaps this may solve your problem.

+1
source

It is proposed to register ieproxy.dll

regsvr32 "C: \ Program Files \ Internet Explorer \ ieproxy.dll"

If you are using 64-bit windows, try the following:

regsvr32 "C: \ Program Files (x86) \ Internet Explorer \ ieproxy.dll"

+1
source

Source: https://habr.com/ru/post/904848/


All Articles