我正在尝试使用以下连接字符串连接到 DB2:
<add name="ConnectionString"
providerName="IBM.Data.DB2.iSeries"
connectionString="Data Source=xxxxxxx,1234;UserID=username;Password=password;"/>
似乎如果我指定端口(1234)它会引发错误:
CWBCO1004 - Remote address could not be resolved
11001
A communication error occurred.
如果我没有指定它抛出的端口(预期):
Unhandled Exception: IBM.Data.DB2.iSeries.iDB2ConnectionTimeoutException: The co
nnection cannot be opened because the connection timed out.
at IBM.Data.DB2.iSeries.iDB2Connection.Open()
有什么方法可以让我在连接字符串上指定端口并且仍然可以工作?
先感谢您 :)