我爱Aspx >> Asp.Net >> C#remoting中遇到的问题,急求解我的服务器代码如下:
google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_color_url = "000000";
try
{
TcpServerChannel channel = new TcpServerChannel(8819);
ChannelServices.RegisterChannel(channel, false);
channel.StartListening(0);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(GetAddress), "getaddress", WellKnownObjectMode.SingleCall);
System.Console.WriteLine("press return to exit");
System.Console.ReadLine();
channel.StopListening(0);
}
catch (Exception e)
{
Console.Write(e.Message);
}
客户端如下:
try
{
TcpClientChannel tcc = new TcpClientChannel();
ChannelServices.RegisterChannel(tcc, false);
GetAddress obj = (GetAddress)Activator.GetObject(typeof(GetAddress), "tcp://***.***.***.***:8819/getaddress");
Ҷƪл˵?
高手帮忙做个VS C# 2003 的课程设..[07-06]
C#线程[07-06]
WinCE.NET仿真,如何用C#v1.1/v2..[07-06]
求blog源码,c#的,急[07-06]
在vs2005里设计winform,比如打开..[07-06]
java有j2me技术,C#有什么? 有人能..[07-06]
c#怎么使弹出窗口置顶[07-06]
c++代码转c#[06-12]
c#写的winform程序,有哪些技术可..[06-12]
.net2005 下建了两个工程:一个是..[06-12]
原来装了XP,执行了SYS C:。有什..[07-06]
关于MYSQL查总记录条数的问题[07-06]
搜索乱码???[07-06]
关于VFP6中管理系统的编写.[07-06]
__doPostBack和updatepanel问题[07-06]
怎么在jsp中显示oracle数据库中的..[07-06]
datagrid数据导入Excel出错,请高..[07-06]
如何用vba 控制字体颜色[07-06]
百度,google编码转换问题![07-06]
S3C2410 SPI驱动问题(高手敬请入..[07-06]