2004-04-20 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.Remoting.Activation / ActivationServices.cs
index 1f8c553c60de648459f3f5e390948705871cf254..09772a67fa8711c0a0529fa8fbcc5998d9a68ce3 100644 (file)
@@ -32,7 +32,7 @@ namespace System.Runtime.Remoting.Activation
                        else
                                response = RemoteActivate (ctorCall);
 
-                       if (response is IConstructionReturnMessage)
+                       if (response is IConstructionReturnMessage && ((IConstructionReturnMessage)response).Exception == null)
                        {
                                Identity identity = RemotingServices.GetMessageTargetIdentity (ctorCall);
                                proxy.AttachIdentity (identity);