This How To describes how to host a remote object in a Windows service and call it from an ASP.NET Web application.
Remote objects (that is, .NET objects accessed remotely using .NET Remoting technology) can be hosted in Windows services, custom executables, or ASP.NET.
Clients communicate with remote objects hosted in custom executables or Windows services by using the TCP channel.
Clients communicate with remote objects hosted in ASP.NET by using the HTTP channel.
If security is the prime concern, host objects in ASP.NET and use the HTTP channel. This allows you to benefit from the underlying security features of ASP.NET and IIS.
For information about how to host a remote object in ASP.NET (with IIS), see article Q312107, “HOW TO: Host a Remote Object in IIS,” in the Microsoft Knowledge Base.
If performance is the prime concern, host objects in a Windows service and use the TCP channel. This option provides no built-in security.