问题描述
我们正在为我们的组织创建一个Web API。 API连接并从HANA视图检索数据。我指的是以下链接中提供的示例,以建立连接
We are creating a web api for our organization. API connects and retrieves data from a HANA View. I am referring the sample provided at the below link to establish the connectivity
由于.Net Core不允许直接引用DLL,因此,我们创建了一个本地nuget程序包,并对其进行引用( )
Since .Net Core does not allow DLL to be referenced directly, we are creating a local nuget package and referencing the same (https://docs.nuget.org/ndocs/create-packages/creating-a-package)
初始化HanaConection时出现以下错误:
I get the below error when I initialize HanaConection:
推荐答案
使用SAP .Net连接器的x86版本的本地nuget程序包,我们的应用程序以64位模式运行。因此,它失败了。我使用64位版本的dll重新创建了程序包,问题得到解决。
We had created the local nuget Package using x86 version of SAP .Net connector, our app was running on 64bit mode. Hence it was failing. I recreated the package using 64bit version of dll and the problem got resolved.
这篇关于具有.Net Core的SAP HANA的.Net连接器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!