[Mono-bugs] [Bug 77126][Wis] New - Using
Thread.CurrentThread.CurrentCulture to change to my own
culture infor class fails. Something to do with serialization?
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Dec 29 18:43:29 EST 2005
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 bugzilla at creativeminds.dk.
http://bugzilla.ximian.com/show_bug.cgi?id=77126
--- shadow/77126 2005-12-29 18:43:29.000000000 -0500
+++ shadow/77126.tmp.24916 2005-12-29 18:43:29.000000000 -0500
@@ -0,0 +1,86 @@
+Bug#: 77126
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: Windows 2003 Standard Ed.
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: bugzilla at creativeminds.dk
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Using Thread.CurrentThread.CurrentCulture to change to my own culture infor class fails. Something to do with serialization?
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+I'm moving a .NET application from the IIS to Mono and XSP.
+When setting the CultureInfo of the thread (using my own CultureInfo class,
+inheriting from the regular CultureInfo) I get an error. On the IIS this
+problem has never been seen by me.
+
+Steps to reproduce the problem:
+1. Create a http handler
+2. Create a CultureInfo class
+3. Using Thread.CurrentThread.CurrentCulture to change to my own culture
+info class.
+
+Actual Results:
+
+System.Runtime.Serialization.SerializationException: Type
+CreativeMinds.CustomWebsiteFramework.Globalization.CultureInfoWithTimeZone
+is not marked as Serializable.
+in <0x000d4>
+System.Runtime.Serialization.Formatters.Binary.BinaryCommon:CheckSerializable
+(System.Type type, ISurrogateSelector selector, StreamingContext context)
+in <0x00145>
+System.Runtime.Serialization.Formatters.Binary.ObjectWriter:GetObjectData
+(System.Object obj,
+System.Runtime.Serialization.Formatters.Binary.TypeMetadata metadata,
+System.Object data)
+in <0x00044>
+System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObject
+(System.IO.BinaryWriter writer, Int64 id, System.Object obj)
+in <0x00108>
+System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObjectInstance
+(System.IO.BinaryWriter writer, System.Object obj, Boolean isValueObject)
+in <0x0002d>
+System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteQueuedObjects
+(System.IO.BinaryWriter writer)
+in <0x00037>
+System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObjectGraph
+(System.IO.BinaryWriter writer, System.Object obj,
+System.Runtime.Remoting.Messaging.Header[] headers)
+in <0x00200>
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Serialize
+(System.IO.Stream serializationStream, System.Object graph,
+System.Runtime.Remoting.Messaging.Header[] headers)
+in <0x00015>
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Serialize
+(System.IO.Stream serializationStream, System.Object graph)
+in <0x00064> System.Threading.Thread:set_CurrentCulture
+(System.Globalization.CultureInfo value)
+in <0x00162> CreativeMinds.CustomWebsiteFramework.Core.WebState:GetLanguage ()
+in <0x0056a> CreativeMinds.CustomWebsiteFramework.Core.WebState:.ctor
+(System.Web.HttpContext context)
+in <0x0002f> CreativeMinds.CustomWebsiteFramework.Core.CWFWebState:.ctor
+(System.Web.HttpContext context)
+in <0x002c0>
+CreativeMinds.CustomWebsiteFramework.Core.HttpHandler:ProcessRequest
+(System.Web.HttpContext context)
+in <0x019c6> System.Web.HttpApplication+<Pipeline>__4:MoveNext ()
+
+Expected Results:
+
+No error!
+
+How often does this happen?
+
+Everytime!
+
+Additional Information:
More information about the mono-bugs
mailing list