[Mono-bugs] [Bug 39926][Nor] Changed - Activation attribute and IContextAttribute interface

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 9 May 2003 23:39:51 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=39926

--- shadow/39926	Fri May  9 23:10:55 2003
+++ shadow/39926.tmp.20194	Fri May  9 23:39:51 2003
@@ -11,13 +11,13 @@
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: jean-marc.andre@polymtl.ca               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: Activator.CreateInstance assemblyName=null
+Summary: Activation attribute and  IContextAttribute interface
 
 Description of Problem:
 The Activator.CreateInstance methods should accept a null value as first
 parameter (the one describing the assembly name).
 If the parameter is null, the runtime looks for the desired type in the
 executing assembly.
@@ -89,7 +89,36 @@
 ------- Additional Comments From lluis@ideary.com  2003-03-24 17:31 -------
 Sorry, I'm wrong, I fixed another one.
 
 ------- Additional Comments From jaime@gnome.org  2003-05-09 23:10 -------
 Created an attachment (id=4261)
 Proposed patch. It compiles properly and it fixes the bug AFAIK
+
+
+------- Additional Comments From gonzalo@ximian.com  2003-05-09 23:39 -------
+Patch applied, but the test still doesn't work.
+
+Now I get:
+
+gpanjav@k7:~/go-mono/bugs$ mono --debug bug39926.exe
+
+Unhandled Exception: System.Runtime.Remoting.RemotingException:
+Activation attribute does not implement the IContextAttribute interface
+in [0x00029] (at
+/home/gpanjav/go-mono/mcs/class/corlib/System.Runtime.Remoting.Activation/ActivationServices.cs:62)
+00
+System.Runtime.Remoting.Activation.ActivationServices:CreateProxyFromAttributes
+(System.Type,object[])
+in [0x000ab] (at
+/home/gpanjav/go-mono/mcs/class/corlib/System/Activator.cs:217) 00
+System.Activator:CreateInstance
+(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
+in [0x0002e] (at
+/home/gpanjav/go-mono/mcs/class/corlib/System/Activator.cs:127) 00
+System.Activator:CreateInstance
+(string,string,bool,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Security.Policy.Evidence)
+in [0x00024] (at
+/home/gpanjav/go-mono/mcs/class/corlib/System/Activator.cs:104) 00
+System.Activator:CreateInstance (string,string,object[])
+in [0x0001f] (at /home/gpanjav/go-mono/bugs/bug39926.cs:35) 00
+ActivatorTest.ActivatorTest:Main ()