Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

The type initializer for 'Sap.Data.Hana.HanaConnection' threw an exception

$
0
0

We are using asp.net mvc application to connecte SAP Hana database ussing Sap.Data.Hana.v4.5 dll version Version=2.4.171.0. This dll available on the system where we installed sap b1 client. 

We are getting error at below line:

HanaConnection conn = new HanaConnection();

Could you please help us what causing this issue.

The type initializer for 'Sap.Data.Hana.HanaConnection' threw an exception

The specified module could not be found
Sap.Data.Hana.v4.5

   at Sap.Data.Hana.HanaUnmanagedDll.LoadDll(String dllPath)
   at Sap.Data.Hana.HanaUnmanagedDll..ctor()
   at Sap.Data.Hana.HanaUnmanagedDll.get_Instance()
   at Sap.Data.Hana.HanaConnection..cctor()


Viewing all articles
Browse latest Browse all 1350

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>