Public Class RemoteObject
Inherits MarshalByRefObject 'return the name of the current application domain
Public Function GetActiveDomain() As String Return AppDomain.CurrentDomain.FriendlyName
End Function
End Class
这是一个简单的类
这是调用
Dim RemoteObj As New RemoteObjects.RemoteObject //就这句报错了。
请求的名称有效,但没有找到请求的类型的数据
Inherits MarshalByRefObject 'return the name of the current application domain
Public Function GetActiveDomain() As String Return AppDomain.CurrentDomain.FriendlyName
End Function
End Class
这是一个简单的类
这是调用
Dim RemoteObj As New RemoteObjects.RemoteObject //就这句报错了。
请求的名称有效,但没有找到请求的类型的数据
解决方案 »
- C#解析truetype字库
- 请教 关于水晶报表加载速度的问题!
- tabControl分行排列是怎么固定标签的位置?
- 求改正这正则表达式
- 关于VS2005做的C#类库文件问题
- 关于C# COM+事务的 自动事务处理部分
- 关于多线程,请看我这段代码是否有问题?
- 如何在程序中执行exec master..xp_cmdshell 'bcp test.dbo.table_1 out c:\temp.dbf -c -q -s"tang\ss" -u"sa" -p""...
- 在listView中如何把当前选中项加入另一个listView中?
- 利用函数GetOleDbSchemaTable的问题,请C#数据库高手出马?
- C#的选代器,为什么不象一个语言设置
- 一个非常酷的.Net 2.0企业开发框架!
这是SimpleClient的app.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application name="SimpleClient">
<client url="tcp://localhost:8080/SimpleServer">
<activated type="RemoteObjects.RemoteObject,RemoteObjects"/>
</client>
<channels>
<channel ref="tcp client"/>
</channels>
</application>
</system.runtime.remoting>
</configuration>
总是报找不到服务