QueryInterface call on the COM component failed TYPE_E_CANTLOADLIBRARY (calling VB6 from VS2013)

0

I already added the reference and registered the dll file on syswow64 (because it is a 32bit dll). I also set the debug platform to x86, and yes, i did enable 32 bits applications on the AppPool of the iis.

The error is produced on this line:

Dim calc As New WBCalculoProd

WBCalculoProd is the vb6 dll, and this is the error message:

Unable to cast COM object of type 'System.__ComObject' to interface type 'WinBlindCalculoProd.WBCalculoProd'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B4888181-1DA3-4E7F-B4E4-3D5A6C32CCE2}' failed due to the following error: Error al cargar la biblioteca de tipo/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

I am using visual studio 2013, vb.net and .NET framework 4.5

What am i doing wrong? Any help would be appreciated.

asp.net
dll
vb6-migration
asked on Stack Overflow Feb 22, 2019 by Harry • edited Feb 22, 2019 by StayOnTarget

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0