在把TDCOMConnection.connected 变为true时,报错:
  Interface not supported
在本机上运行没错

解决方案 »

  1.   

    1、在服务器上用dcomcnfg配置你的应用服务器
    2、TDCOMConnection中需要制定远程服务器的名称或IP地址
      

  2.   

    我在服务器上配了dcomcnfg,在TDCOMConnection也写了远程服务器的名称
    在服务器端都可以跟踪到有客户机联接,连接加一了。可是客户端报Interface not supported。我查了Interface not supported 
    是因为,可是1 3 5 点我不太懂请教
    1) User-level share is not selected
    2) Permission not granted to Everyone
    3) LegacyAuthenticationLevel not set
    4) Guest account disabled
    5) Client is trying to access an interface via vtable binding without first registering it with the client machine.  
      

  3.   

    建议你改用TSocketConnection来完成功能,我以前用DCOMConnection,差点累死,后来改为TSocketConnection.迁移很简单。
      

  4.   

    谢谢,好的,我改改。
    不过我刚刚把服务器的Guest  disable了, 竟然跑起来了,我觉得莫名其妙
      

  5.   

    目前为止, 我都不明白 dcomcnfg 的配置怎样用, 而且应该大多数人都不明白, 这个的确太多问题了不论是 NT or 2000 都可以把一般的 com/dcom 对像安装成 mts/com+对像实际上什么 com/dcom/mts/com+ 都是一回事, 安装到mts/com+ 的好处是有些工具不错特别是配置问题, 分发问题, 而且兼容所有满足以下条件的com/dcom对像, 一个 com/dcom 对像想到 mts/com+ 下安装有两个条件1. 是 in-proc 的对像, 也就是说要 new Active Library 建立服务器工程, 不是 new Application, 其它都一样, 在安装时点 run->install com+ object2. 建立 com/dcom 时的实例(instancing), 不能是 Internal(ctInternal) 和 Single Instance (ctSingleInstance)com+ 已经是铁方向了, .net 中 com+已经是 1.5 版了(目前1.0, 谁知道, 以前从没听过 com+ 还有版本号)