You cannot programmatically configure
the remoting system for your remotable type directly in the host
process, because the host application domains are created by IIS and
ASP.NET. However, you can use the Global.asax file to do much of the
same programmatic configuration that you can do in other types of application domains. To use a configuration file to configure remoting when IIS is your host process.