RemotingConfiguration.Configure()的参数的Config怎样配置啊? RemotingConfiguration.Configure()的参数的Config怎样配置啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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> System.Runtime.Remoting.RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile, false);将配置写在 app.config 中 你要配客户端的还是服务器端的,用什么激活方式 都帮你贴出来吧服务器端激活 配置方法:客户端<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>客户端激活找找资料吧 RemotingSamples.HelloServer, General是什么啊 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); } .net framework 2.0 windows应用程序调用OCX控件报需要许可证问题 急需解决!!! 高手来看看这个是什么语言? 请问C# 有没有象OUTLOOK那样的邮件列表控件啊 用C#怎样实现这样的功能: 请教问个报表求和问题 求解C#与.NET Framework区别 更新数据是如何使用Transaction?大家帮忙啊!!! 如何用填充矩形覆盖控件? 调用控件的问题 操作word word中插入的图片怎么取到图片名字? exce里面插入checkbox,如何把他显示的“复选框X”重命名为自己需要的名称,在线等
<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>
将配置写在 app.config 中
服务器端激活 配置方法:
客户端
<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>
客户端激活找找资料吧