Connection reset by peer. An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, or the remote host used a "hard close".
当创建与 IOM 服务器的连接时,该错误通常是由 sasv8.cfg(或 sasv9.cfg)文件中的 -SASUSER 和 -WORK 设置导致的。尝试将它们设置为显式值,而不是以 ! 或 ? 开头的值。另外,请验证指定的目录是否存在,以及运行 SAS 的用户是否可以访问它们。
过期的 SETINIT 也可能导致该错误。请验证您在 IOM 服务器上有最新的 SETINIT。
另外,请验证 sasv8.cfg (sasv9.cfg) 文件是否存在,以及您是否有权限读取它。
System.Runtime.InteropServices.COMException (0x80042002): <connectionAttempts>
<connectionAttempt>
<description>Connection reset by peer. An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, or the remote host used a "hard close".</description>
<status>0x80042746</status>
<saslogin>administrator</saslogin>
<sasmachinednsname>localhost</sasmachinednsname>
<sasport>9621</sasport>
<sasclassid>440196D4-90F0-11D0-9F41-00A024BB830C</sasclassid>
<sasprogid>SAS.Workspace.1.0</sasprogid>
<threadid>6320</threadid>
<name>test</name>
</connectionAttempt>
</connectionAttempts>
在 SASObjectManager.ObjectFactoryMulti2Class.CreateObjectByServer(String Name, Boolean synchronous, ServerDef pIServerDef, String LoginName, String Password)
在 SAS.BI.Itconfig.Library.ServerTests.SASServerTest.CreateConnectionWithObjectFactoryMulti()
在 SAS.BI.Itconfig.Library.ServerTests.SASServerTest.CreateConnection()