<iframe align="center" marginwidth="0" marginheight="0" src="http://www.zealware.com/csdnblog336280.html" frameborder="0" width="336" scrolling="no" height="280"></iframe>
在调试.Net Remoting程序时,经常会出现一些莫名其妙的问题,IDE提示的异常信息有时也不一定正确。很多时候都是自己粗心,配置configuration文件上出了问题,包括Client和Server端的配置文件。
言归正传,这里看看如何检测Remote Objects是否部署成功。Remote Objects部署成功是第一步,否则Client端调用Remote Objects肯定会抛异常信息了。因此,如出现异常信息,首先检测Remote Objects是否成功部署在Server端。
下面根据激活类型分两种情况:SAO(服务端激活对象)和CAO(客户端激活对象)。
1.SAO对象
对SAO对象而言,比较简单。根据Server端配置文件中<wellknown></wellknown>节或RemotingConfiguration.RegisterWellKnownServiceType()方法中指定的URL,通过IE浏览器检测,如下所示:
http://<hostname>:<port>/<applicationname>/<url>?wsdl<p></p></url></applicationname></port></hostname>
如果IE返回WSDL信息,则显示Remote Objects部署成功。其实只要看到IE有正确返回信息就行了,如果你了解WSDL(Web Services Description Language),可以进一步看看是否调用的Remote Method是否有出现。
需要注意的地方:
(1)如果Remote Objects部署在IIS中,<applicationname></applicationname>则为虚拟目录名称(Virtual Directory Name),并且不要在Web.Config配置文件中设定Application Name。同时Remote Objects的URL需要以soap或rem为后缀名。
(2)如果Remote Objects不是部署在IIS中,则必须在configuration配置文件或者在代码中RemotingConfiguration.Application=”<applicationname>”</applicationname>来指定ApplicationName。
2.CAO对象
对于CAO对象,和SAO对象不一样。需要如下的URL来测试:
http://<hostname>:<port>/<applicationname>/RemoteActivationService.rem?wsdl<p></p></applicationname></port></hostname>
后面是RemoteActivationService.rem,这点和SAO对象不一样。
需要注意的地方:
在调用CAO对象时,需要在Client端的配置文件中<client></client>节指定Remote Objects的url属性。
分享到:
相关推荐
qt RemoteObjects模块用法示例,分为静态、动态连接。博客地址:https://blog.csdn.net/x85371169/article/details/81427864
RemoteObjects-VS2015如何在VS2015中配置使用示例代码
var remoteobjects = require ( 'remoteobjects' ) ; var PORT = 3000 ; // create a proxy server var server = new remoteobjects . ProxyServer ( ) ; server . listen ( PORT , function ( ) { console . log ...
基于Qt 6.3.2,简单使用Qt remote objects 编写的一个简单的写文件的demo。
Componente-PascalScript-RemoteObjects.7z
利用Python Remote Objects技术实现分布式对象应用系统
利用Python Remote Objects技术实现分布式对象应用系统.pdf
python库。资源全名:remoteobjects_py-0.1.0-py3-none-any.whl
Remote Remote Remote Remote Remote
倍力资讯出品 pb 遠端部署(Remote Deployment).NET WebForm,pb 遠端部署(Remote Deployment).NET WebForm
Remote Desktop Application
RemotePC
最新版Remote Desktop Manager11注册机
Remote Sensing期刊是MDPI旗下的一本开源SCI期刊,2021-2022影响因子为5.349。Web of Science分区情况为:JCR - Q1 (Geosciences, Multidisciplinary) / CiteScore - Q1 (General Earth and Planetary Sciences)。 ...
remote sensing 模板 2022remote sensing 模板 2022remote sensing 模板 2022remote sensing 模板 2022remote sensing 模板 2022remote sensing 模板 2022remote sensing 模板 2022remote sensing 模板 2022remote ...
RDCMan manages multiple remote desktop connections. It is useful for managing server labs or large server farms where you need regular access to each machine such as automated checkin systems and data...
Remote Debugger
该期刊所属遥感领域,为2区。这里,我们提供了其word版本的格式模板。
SoftICE Remote Access Settings SoftICE Remote Access Settings