惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
大猫的无限游戏
大猫的无限游戏
MongoDB | Blog
MongoDB | Blog
A
About on SuperTechFans
M
MIT News - Artificial intelligence
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
P
Proofpoint News Feed
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理

博客园 - 旴江老段

委托和事件的区别 如何开发和维能hold住全场的软件 什么样的软件才能hold住全场 SNOOP 开发WPF的好工具 被遗忘的事物 前台线程和后台线程(Foreground and Background Threads) runtime binding policy Checking space used in a database AsyncCallback方法和主线程怎么同步呢? Using Custom Assemblies with Reports 为什么32位的CPU?为什么32位的CPU只能支持4G的内存呢? 学习SSL和certificate的好网页 Wix Upgrade怎么判断是否更新 学WIX的好网站 SELECT @local_variable (Transact-SQL) sql server try catch and transaction的几个要点 使SQL关键字变大写的小工具 Assert.AreEqual .net 异步调用机制
Remoting Practice Sample
旴江老段 · 2011-02-24 · via 博客园 - 旴江老段

这两天研究了一下Remoting, 改了MSDN 的例子。

那个例子不是很方便。

我做了如下改进: 

  1. 整个sample做成一个solution
  2. 用了windows service 来做server。
  3. 用了80端口,来突破防火墙
  4. Add interface project, so client reference interface rather than class 

部署时要注意的地方: 

  1. 如果不改变 ZZ Remoting Test Host.config中的端口80,那么需要停止IIS
  2. ZZ Remoting Test Host.config 要拷贝到 C:\windows\system32,这是windows service寻找配置文件的地方。
  3. 使用命令installutil RemoteHost.exe 安装 windows service,然后启动service
  4. 修改Client.exe.config 改成您需要的IP

代码下载

posted on 2011-02-24 19:31  旴江老段  阅读(780)  评论(0)    收藏  举报

刷新页面返回顶部