How to deploy a .Net Remoting Host Server(Server Activated Objects)
2005-04-05 15:14
465 查看
1、First and foremost you should refer your own Assembly then define a Class derived from "MarshalByRefObject" !
2、Then you should register its ports : Http or Tcp as following:
HttpChannel cnl=new HttpChannel(7608);
ChannelServices.RegisterChannel(cnl);
or
TcpChannel cnl=new TcpChannel(7711);
ChannelServices.RegisterChannel(cnl);
3、define a ApplicationName---be equal to IIS application,like this:
RemotingConfiguration.ApplicationName="TranserRemotingService"
4、define a Well Known Service Type Entry
WellKnownServiceTypeEntry ETR=new(WellKnownServiceTypeEntry (typeof("your class"),"OBJURL",WellKnownObjectMode.SingleCall or WellKnownObjectMode.Singleton ));
5、Register this Entry
RemotingConfiguration.RegisterWellKnownServiceType(ETR);
Ok,now you can establish your client to test your Host Server!
2、Then you should register its ports : Http or Tcp as following:
HttpChannel cnl=new HttpChannel(7608);
ChannelServices.RegisterChannel(cnl);
or
TcpChannel cnl=new TcpChannel(7711);
ChannelServices.RegisterChannel(cnl);
3、define a ApplicationName---be equal to IIS application,like this:
RemotingConfiguration.ApplicationName="TranserRemotingService"
4、define a Well Known Service Type Entry
WellKnownServiceTypeEntry ETR=new(WellKnownServiceTypeEntry (typeof("your class"),"OBJURL",WellKnownObjectMode.SingleCall or WellKnownObjectMode.Singleton ));
5、Register this Entry
RemotingConfiguration.RegisterWellKnownServiceType(ETR);
Ok,now you can establish your client to test your Host Server!
相关文章推荐
- How to dispose a .Net Remoting Host Server(Server Activated Objects)
- How to Host ASP.Net Web API on IIS Server
- How to debug Web Services or .Net Remoting Components hosted in IIS in Windows 2003 Server
- How to Add Windows Host to Nagios Monitoring Server
- How to read and save Images in a Sql Server Database using ADO.NET and C#
- How to setup Relay host in mail server
- Basic Sample - How To Keep ASP.NET ViewState On The Server
- Drill Into .NET Framework Internals to See How the CLR Creates Runtime Objects
- ASP.NET Alerts: how to display message boxes from server-side code?
- How To Deploy on Bluehost
- How to enable an ASP.Net application to run on a SharePoint virtual server
- How to deploy openbr on linux server very shorly---- linuxmint13/ubuntu12.04 AMD64/debian7
- How to deploy MapViewer to Oracle WebLogic Server
- How to Use .Net Remoting Using C#
- CodeSnip: How to Get Id of the Record Using ASP.NET and SQL Server 2000
- How to deploy the ASP.NET MVC 3 website into the IIS7 on Windows server 2008
- How to find user who ran DROP or DELETE statements on your SQL Server Objects
- jenkins 启动slave,出现com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://127.0.0.1:8080/jnlpJars/remoting.jar
- Drill Into .NET Framework Internals to See How the CLR Creates Runtime Objects
- HOW TO Set Up Multi-Server ASP.NET Web Applications and Web Services