[Mono-bugs] [Bug 79732][Nor] New - [PATCJ] CrossAppDomain regression due to change in BinaryFormatter

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Oct 24 13:35:42 EDT 2006


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 gert.driesen at pandora.be.

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

--- shadow/79732	2006-10-24 13:35:42.000000000 -0400
+++ shadow/79732.tmp.4712	2006-10-24 13:35:42.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 79732
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCJ] CrossAppDomain regression due to change in BinaryFormatter
+
+In .NET 2.0, the BinaryFormatter.AssemblyFormatter is by default 
+FormatterAssemblyStyle.Simple while in .NET 1.x it was 
+FormatterAssemblyStyle.Full.
+
+Due to this change,  creation of instances that use types from referenced 
+assemblies fails, reporting a FileNotFoundException.
+
+To reproduce, compile the attached code snippet using gmcs and run it.
+
+Expected result:
+
+No errors.
+
+Actual result:
+
+Unhandled Exception: System.IO.FileNotFoundException: Could not load file 
+or assembly 'System' or one of its dependencies. The system cannot find 
+the file specified.
+File name: 'System'
+  at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap 
+(string,string,bool,System.Reflection.BindingFlags,System.Reflection.Binde
+r,object[],System.Globalization.CultureInfo,object
+[],System.Security.Policy.Evidence)
+  at (wrapper remoting-invoke-with-check) 
+System.AppDomain:CreateInstanceAndUnwrap 
+(string,string,bool,System.Reflection.BindingFlags,System.Reflection.Binde
+r,object[],System.Globalization.CultureInfo,object
+[],System.Security.Policy.Evidence)
+  at Test.Main () [0x00000]


More information about the mono-bugs mailing list