代码加咖啡的生活

专门讨论.NET相关技术--大坏蛋
随笔 - 29, 评论 - 253, 引用 - 67

导航

关于


标签

每月存档

最新留言

广告

 

现有如下代码:

RemotingConfiguration.Configure(...)  
  
RemoteObject refObj = new RemoteObject();  //cf为Remoting承载远程组件
 
BusiObject o = refObj.GetObject("Name") as BusiObject;  //返回对象为EnterpriceService
 
o.TestMethod();  //此处会出错

就此问题,微软已有解答:Exposing ServicedComponents As a Remoting Endpoint from a COM+ Dllhost.exe Process Is Not Supported http://support.microsoft.com/default.aspx?scid=kb;en-us;322627

? You can host your ServicedComponents in IIS by selecting uses SOAP on the Activation tab of the properties for the COM+ application.
? You can use a custom host that hosts the ServicedComponents from a COM+ library application.

其实将组件承载在Library模式的COM+应用里即可

打印 | 张贴于 2005-09-06 10:01:00 | Tag:暂无标签

留言反馈

暂时没有留言纪录
对不起,目前本随笔不允许发表新评论.

Powered by: Joycode.MVC引擎 0.5.2.0