【问题标题】:CONNECT:Direct Could not establish a connection to serverCONNECT:Direct 无法建立与服务器的连接
【发布时间】:2015-10-02 05:49:39
【问题描述】:

注意:在这里回答我自己的问题以帮助将来的人们

在新 PC 上安装应用程序并使用 ConnectDirect 将文件从 Windows 传输到 Unix 后运行应用程序时,我看到错误消息:

System.Runtime.InteropServices.COMException (0x00000009): 无法建立与服务器的连接 无法建立与服务器的连接

它发生在 Connect 方法上:

请参阅下文来解决它。

【问题讨论】:

    标签: connect-direct


    【解决方案1】:

    您需要在此处添加注册表项:

    Windows Registry Editor Version 5.00
    
    [HKEY_USERS\S-1-5-21-3499964120-3315823391-1593708255-109682\Software\Sterling Commerce CONNECT:Direct]
    
    [HKEY_USERS\S-1-5-21-3499964120-3315823391-1593708255-109682\Software\Sterling Commerce CONNECT:Direct\Nodes]
    
    [HKEY_USERS\S-1-5-21-3499964120-3315823391-1593708255-109682\Software\Sterling Commerce CONNECT:Direct\Nodes\**CDServer.example.com**] "CDName"="**CDServer**" "ApiVersion"=dword:0000107f "SecurePlusVersion"=dword:00000000 "CompLevel"=dword:00000001 "SelectedOSType"=dword:00000000 "OSType"=dword:00000002 "SubType"=dword:00000000 "Server"="**CDServer**" "DefaultProtocol"="TCPIP" "DefaultUserid"="**CDPassword**"
    
    [HKEY_USERS\S-1-5-21-3499964120-3315823391-1593708255-109682\Software\Sterling Commerce CONNECT:Direct\Nodes\**CDServer.example.com**\Protocols]
    
    [HKEY_USERS\S-1-5-21-3499964120-3315823391-1593708255-109682\Software\Sterling Commerce CONNECT:Direct\Nodes\**CDServer.example.com**\Protocols\TCPIP] "TcpAddress"="**CDServer.example.com**;1363"
    
    [HKEY_USERS\S-1-5-21-3499964120-3315823391-1593708255-109682\Software\Sterling Commerce CONNECT:Direct\Nodes\**CDServer.example.com**\Userids]
    
    [HKEY_USERS\S-1-5-21-3499964120-3315823391-1593708255-109682\Software\Sterling Commerce CONNECT:Direct\Nodes\**CDServer.example.com**\Userids\**CDPassword**] "Password"="6 XFWmtqzo5" "Temporary"=dword:00000000 "RememberPW"=dword:00000001
    

    在导入注册表文件之前,您需要将 Windows 用户 ID 替换为您将要在其中导入文件的用户 PC。

    文件中硬编码的 Windows 用户 ID 为 109682,要查找用户 PC 的 Windows 用户 ID,请在此处找到:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\hivelist

    【讨论】:

      猜你喜欢
      • 2020-04-06
      • 2012-10-17
      • 1970-01-01
      • 1970-01-01
      • 2019-06-21
      • 2021-07-18
      • 2018-08-09
      • 2021-03-02
      • 2015-06-13
      相关资源
      最近更新 更多