IBM.Data.DB2.Core 1.0.0.100引发System.EntryPointNotFoundException:

时间:2018-11-05 19:36:20

标签: c# exception .net-core db2

尝试查询表时,我收到以下信息。

  IBM.Data.DB2.Core.UnsafeNativeMethods.DB2InteropAPP.sqlocpcv中的

(Byte **   ppucInput,UInt32 uInputLen,UInt32 uSourceCP,UInt32 uTargetCP,   UInt32 uConvMethod,Sqlocvcbx * pConvCB,UInt32 * pfSubstitue)   IBM.Data.DB2.Core.UnsafeNativeMethods.DB2Sys.sqlocpcv(字节**   ppucInput,UInt32 uInputLen,UInt32 uSourceCP,UInt32 uTargetCP,   UInt32 uConvMethod,Sqlocvcbx * pConvCB,UInt32 * pfSubstitue)   IBM.Data.DB2.Core.DB2ConvUtil.ConvertCp(Byte * pSource,Byte * pTarget,   Int32 iSourceBytes,Int32 iTargetSize,Int32 * piSourceBytesProcessed,   Int32 * piTargetBytesReturned,UInt32 uiSourceCodePage,UInt32   uiTargetCodePage,Sqlocvcbx * pConvCB)   IBM.Data.DB2.Core.DB2DataDescriptor.GetStringAndAdvance(Byte *&   pDataBuffer)   IBM.Data.DB2.Core.DB2DataDescriptor.ReadDDExtDataArea(Byte *   pDataBuffer,DDEntry ddEntry)   IBM.Data.DB2.Core.DB2DataDescriptor.FillDDInfo(IntPtr pSqldd)在   IBM.Data.DB2.Core.DB2DataDescriptor..ctor(IntPtr pSqldd,DB2Connection   连接)   IBM.Data.DB2.Core.DB2DataReader.SetDataDescriptors(IntPtr pOutputDD,   IntPtr pColInfoDD)   IBM.Data.DB2.Core.DB2DataReader.SetDataDescriptors(CLI_SQLDD_KIND   标志)   IBM.Data.DB2.Core.DB2Command.ExecuteReaderObject(CommandBehavior   行为,字符串方法,DB2CursorType reqCursorType,布尔   abortOnOptValueChg,布尔skipDeleted,布尔isResultSet,Int32   maxRows,布尔型skipInitialValidation)   IBM.Data.DB2.Core.DB2Command.ExecuteReader(CommandBehavior行为)
  在   System.Data.Common.DbCommand.ExecuteDbDataReaderAsync(CommandBehavior   行为,CancellationToken cancelToken)

System.EntryPointNotFoundException: Unable to find an entry point named 'sqlocpcv' in DLL 'db2app64.dll'.

我的项目配置设置为x64。

<PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <Platforms>x64</Platforms>
    <TargetPlatform>x64</TargetPlatform>
  </PropertyGroup>

0 个答案:

没有答案