I received a dll generated in vb6 to integrate with my asp.net Core api, in that dll to various calculation methods.
With that, I must invoke these dll methods in my asp.net core 3.0 project in visual studio.
It is possible to import the dll into my asp.net core project normally, and even invoke the methods. When starting my asp.net project everything works normally, until the moment of informing the requested parameters so that the method inside the dll is invoked
In the line where my asp.Net core project instantiates my DLL, the following error is shown shows the following error
System.Runtime.InteropServices.COMException: 'Retrieving the COM class factory for component with CLSID {C0131351-6182-46C9-87E0-A509400E50AD} failed due to the following error: 80040154 Classe não registrada (0x80040154 (REGDB_E_CLASSNOTREG)).
Inside csproj, my dll is referenced as follows in xml
<ItemGroup>
<COMReference Include="CSGlobal.dll">
<Guid>9ddd0edf-9e32-48b0-ae31-5beb13a85606</Guid>
<EmbedInteropTypes>True</EmbedInteropTypes>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<WrapperTool>tlbimp</WrapperTool>
<Lcid>0</Lcid>
<Isolated>false</Isolated>
</COMReference>
</ItemGroup>
User contributions licensed under CC BY-SA 3.0