+2003-07-25 Lluis Sanchez Gual <lluis@ximian.com>
+
+ * RemotingServices.cs: If the type for a proxy is not available in
+ the client site, use the MarshalByRefObject type.
+
2003-07-21 Lluis Sanchez Gual <lluis@ximian.com>
* ServerIdentity.cs: Fixed bug #46645
// FIXME: use type name when fRefine==true
Type classToProxy = fRefine ? objref.ServerType : typeof (MarshalByRefObject);
+ if (classToProxy == null) classToProxy = typeof (MarshalByRefObject);
if (objref.IsReferenceToWellKnow)
return GetRemoteObject(objref, classToProxy);
IMessageSink sink = ChannelServices.CreateClientChannelSinkChain (url, channelData, out objectUri);
if (sink == null)
{
- if (url != null) \r
+ if (url != null)
{
string msg = String.Format ("Cannot create channel sink to connect to URL {0}. An appropriate channel has probably not been registered.", url);
throw new RemotingException (msg);
}
- else \r
+ else
{
string msg = String.Format ("Cannot create channel sink to connect to the remote object. An appropriate channel has probably not been registered.", url);
throw new RemotingException (msg);