2004-04-20 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.Remoting.Activation / ActivationServices.cs
index 59da20bb9b8207983d8c36d5b4ab9e784c18e627..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);
@@ -177,7 +177,7 @@ namespace System.Runtime.Remoting.Activation
 
                // Allocates an uninitialized instance. It never creates proxies.
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
-               private static extern object AllocateUninitializedClassInstance (Type type);
+               public static extern object AllocateUninitializedClassInstance (Type type);
 
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                public extern static void EnableProxyActivation (Type type, bool enable);