oledb v3 cannot supply requested class

Discuss a software development with IBProvider

oledb v3 cannot supply requested class

Postby rosper » 02 Jul 2019, 00:33

Hi.
I'm testing lcpi.ibprovider_v3_vc12xp_w32_free_i.dll
I added the following manifest

Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <file name = "lcpi.ibprovider_v3_vc12xp_w32_free_i.dll">
   <comClass progid="LCPI OLE DB Provider for InterBase [v3] [Free]" clsid="{769A1280-04BF-11D8-AE8B-00A0C907DB93}" threadingModel = "Both" />
  </file> 
</assembly>


I placed the lcpi.ibprovider_v3_vc12xp_w32_free_i.dll, msvcp120.dll, msvcr.dll beside my Exe.
Using proc monitor I can see that my Exe is calling correctly lcpi.ibprovider_v3_vc12xp_w32_free_i.dll, msvcp120.dll files. But when try to connect I got the error "Class factory cannot supply requested class".

lcpi.ibprovider_v3_vc12xp_w32_free_i.dll is 3.55.1.29296 version.
msvcp120.dll is 12.0.21005.1 version.

Am I doing something wrong?
rosper
 
Posts: 8
Joined: 06 Jun 2010, 00:41

Re: oledb v3 cannot supply requested class

Postby Kovalenko Dmitry » 02 Jul 2019, 09:11

Hello,

Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <file name = "lcpi.ibprovider_v3_vc12xp_w32_free_i.dll">
   <comClass progid="LCPI.IBProvider.3.Free" clsid="{769A1285-04BF-11D8-AE8B-00A0C907DB93}" threadingModel = "Both" />
  </file> 
</assembly>


Define in connection string "provider=LCPI.IBProvider.3.Free"

{769A1280-04BF-11D8-AE8B-00A0C907DB93} - this is CLSID of IBProvider Professional Edition (Full Version).

See also:
https://www.ibprovider.com/eng/document ... e_com.html

All CLSIDs enumerates in:
sdk\ibprovider\v03\lcpi_sdk__ibprovider__v03__clsids.cpp
sdk\ibprovider\v03\lcpi_sdk__ibprovider__v03__private_clsids.cpp
Kovalenko Dmitry
Site Admin
 
Posts: 846
Joined: 17 Nov 2005, 20:51
Location: Russia, Lipetsk

Re: oledb v3 cannot supply requested class

Postby rosper » 02 Jul 2019, 20:27

Thanks mate.
I modified the manifest and now it's working correctly. I'm gonna keep testing it.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<file name = "lcpi.ibprovider_v3_vc12xp_w32_free_i.dll">
<comClass progid="LCPI.IBProvider.3.Free" clsid="{96957881-7966-4C2D-9A6D-D8DEA36C7CB0}" threadingModel = "Both" />
</file>
</assembly>
rosper
 
Posts: 8
Joined: 06 Jun 2010, 00:41


Return to Programming with IBProvider

Who is online

Users browsing this forum: No registered users and 4 guests

cron