RemotingConfiguration.Configure()的参数的Config怎样配置啊?

解决方案 »

  1.   

    Listener.exe.config <?xml version="1.0" encoding="utf-8" ?> 
    <configuration> 
        <system.runtime.remoting> 
          <application> 
             <service> 
                <wellknown 
                   mode="Singleton" 
                   type="Remotable.RemotableType, RemotableType" 
                   objectUri="RemotableType.rem" 
                /> 
             </service> 
             <channels> 
                <channel ref="http" port="8989"/> 
             </channels> 
          </application> 
        </system.runtime.remoting> 
    </configuration> 
      

  2.   

    System.Runtime.Remoting.RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile, false);
    将配置写在 app.config 中
      

  3.   

     你要配客户端的还是服务器端的,用什么激活方式 都帮你贴出来吧
    服务器端激活 配置方法:
    客户端
    <configuration>
    <system.runtime.remoting>
    <application>
    <client>
    <wellknown type="HelloServer, General" url="http://localhost:8086/SayHello" />
    </client>
    <channels>
    <channel ref="http" port="0"></channel>
    </channels>
    </application>
    </system.runtime.remoting>
    </configuration>
    服务器端
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    <system.runtime.remoting>
    <application>
    <service>
    <wellknown 
    mode="Singleton" 
    type="RemotingSamples.HelloServer, General" 
    objectUri="SayHello" />
    </service>
    <channels>
    <channel port="8086" ref="http"/>
    </channels>
    </application>
    </system.runtime.remoting>
    </configuration>
    客户端激活找找资料吧
      

  4.   

    RemotingSamples.HelloServer, General是什么啊
      

  5.   

    void Application_OnStart() { ApplicationConfiguration.OnApplicationStart(Context.Server.MapPath( Context.Request.ApplicationPath )); string configPath = Path.Combine(Context.Server.MapPath( Context.Request.ApplicationPath ),"remotingclient.cfg"); if(File.Exists(configPath))     RemotingConfiguration.Configure(configPath); }