如何解决新的DB2ConnectionconnectionString中的IBM.Data.DB2.Core错误
我们在IBM.Data.DB2.Core (3.1.0.300)
应用程序库中安装了.netstandard2.1
nuget程序包,以连接到Prem上的外部DB2
实例。
从.net核心azure函数v3 Windows 64位版本(来自netcoreapp3.1
项目)运行以下代码时
var connectionString= "Server=DB2_IP:DB2_Port;Database=DB2_DBNAME;UID=DB2_UserId;PWD=DB2_Password;"
var connection = new DB2Connection(connectionString);
(note the values in the connection string are placeholders for anonymity)
我们收到以下错误
IBM.Data.DB2.Core.DB2Exception (0x80004005): ERROR [58005] [IBM][DB2.NET] SQL0902 An unexpected
exception has occurred in
Process: 21308 Thread 33 AppDomain: Name:Microsoft.Azure.WebJobs.Script.WebHost
There are no context policies. Function: AESEncryptADONET (Encryption Info)
CallStack: at System.Environment.get_StackTrace()
at IBM.Data.DB2.Core.DB2ConnPool.HandleUnknownErrors(String strFncMsg,Exception exception,Boolean bThrow)
at IBM.Data.DB2.Core.DB2ConnPool.EncryptString(String value)
at IBM.Data.DB2.Core.DB2ConnPool.ReplaceConnectionStringParms(DB2Connection connection,String szValue,DB2ConnSettings& pSettings,DB2ConnSettingsInternal& pSettingsInternal,Boolean bAttach,Boolean pushDownStrAppended)
at IBM.Data.DB2.Core.DB2Connection.set_ConnectionString(String value)
at IBM.Data.DB2.Core.DB2Connection..ctor(String connectionString)
是否有人知道我们要去哪里错了,或者对设置有一个连贯的端到端指南,这可能会给我一个提示。
到目前为止,我发现的所有文档都很稀少且有点不一致。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。