InterSystems IRIS 提供程序通信 link 失败:System.Net.Sockets.SocketException 在 C# 中

InterSystems IRIS Provider Communication link failure: System.Net.Sockets.SocketException in C#

我使用的是 VS Studio 2017 和 InterSystems IRIS 数据库版本 2019.1。
当我尝试从代码访问数据库时,它会抛出以下错误:

InterSystems.Data.IRISClient.IRISException: '[IRIS Provider] Communication link failure: System.Net.Sockets.SocketException; No connection could be made because the target machine actively refused it [::1]:1972

下面是我的代码片段。

// Using IRISADOConnection to connect
IRISADOConnection connect = new IRISADOConnection();

// Create connection string
connect.ConnectionString = "Server = localhost; Port = 1972; Namespace =  User; Password = abcd@1234; User ID = _system";
connect.Open();
connect.Close();

如果您有任何解决方案,请告诉我。

看起来只是无法连接到数据库端口。在 iris 中,默认端口是 51773。请在管理门户中检查您的配置。

是否有任何容器中的任何东西?