[求助]部署连接到SAP HANA DB的C#程序时出现问题 [英] [SOLVED] Problem in deploying C# program that connect to SAP HANA DB

查看:252
本文介绍了[求助]部署连接到SAP HANA DB的C#程序时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在VS 2017上开发了一个在SAP HANA数据库上进行SELECT的程序。


My操作系统是Windows 7 64位sp1。在这台机器上我安装了SAP Hana studio(64bit)。


程序目标"任何CPU"。


我的程序运行良好我的开发电脑(WIndows 10 64b),但在生产电脑上我得到了这个错误:


^^^^^^^^^^^

未处理异常:System.TypeInitializationException:类型初始化程序fpr'Sap.Data.Hana.HanaConnection'抛出异常---> System.IO.FileNOtFound

Excpetion:找不到libSQLDBCHDB.dll

^^^^^^^^^^^


在这台PC上安装了SAP HANA CLIENT(64位和32位)。


有什么想法吗?


LuKe



解决方案

已解决。


问题是SAP HANA DLL的不同版本。



LuKe


Hi,

I've developed on VS 2017 a program that make a SELECT on a SAP HANA DB.

My OS is Windows 7 64bit sp1. On this machine I've installed SAP Hana studio (64bit).

The program target "Any CPU".

My program runs well on my development pc (WIndows 10 64b), but on the production pc I got this error:

^^^^^^^^^^^
Unhandled Exception: System.TypeInitializationException: The type initializer fpr 'Sap.Data.Hana.HanaConnection' threw an exception ---> System.IO.FileNOtFound
Excpetion: Cannot find libSQLDBCHDB.dll
^^^^^^^^^^^

On this PC is installed SAP HANA CLIENT (both, 64 and 32  bit).

Any ideas?

LuKe

解决方案

Solved.

The problem was a different version of dhe SAP HANA DLL.

LuKe


这篇关于[求助]部署连接到SAP HANA DB的C#程序时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆