When using the .NET Remoting mechanism to deploy an application, you may see the "Reference to Null Object" Run-Time error message, but does not have such an error when running in Visual Studio .NET IDE, check Remoting config configuration files, the most likely reason is that there is a lack of corresponding Activated Type content in the configuration file, and its content should be, such as , for example:
If you need to configure the Class of Remoting, there is no corresponding ActiVated Type content, it will be wrong when you call this class.