当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - HANA Error: Method not found: 'IntPtr System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(!!0)'. 2008R2

问题描述:

I am writing an ASP.Net web site on a Windows 2008R2 server that is connecting to a SAP HANA database using Rclient120 (HDBODC v1.00.120.32 in ODBC Manager). After developing locally, we installed the same version of the client drivers on our production servers & now when I execute the reader:

using (HanaDataReader objReader = objCmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection))

{

//More code here...

}

Here's the rub. If we put this on our 2012 web server everything works great. I know it's a long shot, but I'm hoping someone here might have some insight other than just upgrading to 2012.

分享给朋友:
您可能感兴趣的文章:
随机阅读: