InteropServices.COMException - Class not registered - vb.net

I'm having some problems in using a type that comes from an old unmanaged DLL.
gobjDPProject = New DP_Store_21.cProject
When I make this assignment an exception is threw
A first chance exception of type
'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
Additional information: Retrieving the COM class factory for component with
CLSID {98214FEB-FE5C-495F-A926-F23DC62EEDD6} failed due to the following
error: 80040154 Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG)).
To check the existence of this class I went to Regedit and found the component with the CLSID reported by the Exception, it exists and under the ProgID subFolder I can see the DP_Store_21.CProject class.
Inside Visual Studio -> My Project -> References I can navigate inside the DP_Store_21 DLL (it's an Interop) and the CProject class is there.
Run regsvr32 /pathTo DP_Store_21.dll gives no problems and the other classes of the library are correctly instantiated, what I am missing ?

Related

Cannot run SSIS package in Visual Studio error unable to cast COM object

Trying to run a simple SSIS package in Visual Studio 2019. I have SQL server 2019. When I run it, it shows the message:
Unable to cast COM object of type 'System.__ComObject' to interface
type 'Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2019.IDTSApplication160'.
This operation failed because the QueryInterface call on the COM
component for the interface with IID
'{037FE238-12C5-4313-AE13-9E116E90ACEA}'
failed due to the following error: No such interface supported
(Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
(Microsoft.DataTransformationServices.VsIntegration)
I researched this error online and tried running this regsvr32 dts.dll. Didn't help.

Retrieving the COM class factory for component with CLSID {XX} failed due to the following error: 80004005 Unspecified error

I am working on VB.NET WinForm Application ( 32 bit) which references third party COM dll (32 bit). My Target Platform points to x86. I registered the dll using command prompt as administrator. However while creating the instance of dll it intermittently not able to create it and I get the following COM exception:
Retrieving the COM class factory for component with CLSID
{0CBDC6C1-3D1E-4CEB-A89E-5D081985E874} failed due to the following
error: 80004005 Unspecified error (Exception from HRESULT: 0x80004005
(E_FAIL)).
Can anyone help me with this, please?

Retrieving the COM class factory for component with CLSID {4C2901D1-5354-11D4-A6F9-00508B4ACA2C} failed due to the following error: 80040154

I was trying to execute an executable, but got error message:
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {4C2901D1-5354-11D4-A6F9-00508B4ACA2C} failed due to the following error: 80040154.
this exe comes along with 4 dll files in its own folder:
ATTPRV32.dll
Csta32.dll
Interop.AXS_INPROCLib.dll
Microsoft.VisualBasic.PowerPacks.Vs.dll
I've tried to register each of these dll files but got the same error message:
.DLL was loaded, but the DllRegisterServer entry point was not found
It means the class: 4C2901D1-5354-11D4-A6F9-00508B4ACA2C isnt in the registry plain and simple.
See more here...
System.Runtime.InteropServices.COMException (0x80040154):

Getting errors in registering the COM DLL

when i was trying to register my own com dll it is giving me error as
"The module ClassLibrary was loaded but entry point dllregister server was not found.

Library not registered

I got this error :
Warning 1 Cannot get the file path for type library
"a5ededf4-2bbc-45f3-822b-e60c278a1a79" version 12.0. Library not
registered. (Exception from HRESULT: 0x8002801D
(TYPE_E_LIBNOTREGISTERED)) OCRMongo
In vb.net
I follow instruction from
http://www.techrepublic.com/forum/questions/101-345154/how-do-i-install-microsoft-modi-110
and I still get that warning. What's the problem?