[Mono-bugs] [Bug 48050][Min] Changed - Serialization failure with string from icall

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 29 Aug 2003 22:04:28 -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=48050

--- shadow/48050	2003-08-29 18:45:14.000000000 -0400
+++ shadow/48050.tmp.27800	2003-08-29 22:04:28.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 48050
-Product: Mono/Class Libraries
+Product: Mono/Runtime
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
-Status: NEW   
+Status: NEEDINFO   
 Resolution: 
-Severity: 
-Priority: Blocker
-Component: CORLIB
+Severity: Unknown
+Priority: Minor
+Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: gonzalo@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: Serialization failure
+Summary: Serialization failure with string from icall
 
 Some of the changes in CVS in the last 24 hours make xsp throw this when
 trying to access any page:
 
 Unhandled Exception: System.ArgumentException: Uninitialized Strings cannot
 be created.
@@ -52,6 +52,20 @@
 System.Runtime.Remoting.Messaging.CADMethodCallMessage:GetArguments ()
 in <0x0006f> 00 System.Runtime.Remoting.Messaging.MethodCall:.ctor
 (System.Runtime.Remoting.Messaging.CADMethodCallMessage)
 in <0x0006e> 00 System.AppDomain:ProcessMessageInDomain
 (byte[],System.Runtime.Remoting.Messaging.CADMethodCallMessage,byte[]&,System.Runtime.Remoting.Messaging.CADMethodReturnMessage&)
 in (unmanaged) 07 System.AppDomain:SetData (string,object)
+
+------- Additional Comments From gonzalo@ximian.com  2003-08-29 22:04 -------
+I have a workaround for this in CVS.
+
+Why do this happen with this code in ApplicationHost.cs?
+
+domain.SetData (".hostingInstallDir",
+ICalls.GetMachineInstallDirectory ());
+
+This is the workaround:
+
+string mid = new StringBuilder (ICalls.GetMachineInstallDirectory
+()).ToString ();
+domain.SetData (".hostingInstallDir", mid);