如何:在 IIS 中配置远程处理客户端
本主题介绍一项传统技术,保留该技术是为了向后兼容现有的应用程序,不建议对新的开发使用该技术。现在应该使用 Windows Communication Foundation (WCF) 来开发分布式应用程序。
下面的示例在 IIS 中配置了一个远程处理客户端。<client> 标记中的 url 特性指向远程应用程序的位置。该位置是应用程序需要客户端激活的对象时它将使用的位置。每一个服务器激活的对象都具有指向该对象位置的特定 URL。
示例
<configuration>
<system.runtime.remoting>
<application>
<client
url = "http://www. cpandl.com"
displayName="MyApplication"
>
<wellknown
type = "myType,myAssembly"
url = http://www. cpandl.com/myType.soap"
/>
<activated
type = "myClientActivatedType,myAssembly"
/>
</client>
</application>
</system.runtime.remoting>
</configuration>
另请参见
参考
System.Runtime.Remoting.RemotingConfiguration Class
概念
其他资源
使用配置文件注册远程对象
.NET Framework 远程处理概述
生成日期:2010-02-13