[Mono-bugs] [Bug 71601][Wis] New - Can't store a DataSet in a ViewState

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 22 Jan 2005 09:53:00 -0500 (EST)


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 rogerio.araujo@gmail.com.

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

--- shadow/71601	2005-01-22 09:53:00.000000000 -0500
+++ shadow/71601.tmp.17916	2005-01-22 09:53:00.000000000 -0500
@@ -0,0 +1,117 @@
+Bug#: 71601
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rogerio.araujo@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Can't store a DataSet in a ViewState
+
+Description of Problem:
+
+Everytime when i try to store a DataSet in a view state i got a error with
+a big stack trace, all details of this error was described here.
+
+
+Steps to reproduce the problem:
+1 - Create a page with a databound control
+2 - Use any provider to establish a connection to database
+3 - Fill a DataSet with and sql resultset.
+4 - Assign this DataSet top a ViewState variable.
+
+
+Actual Results:
+
+System.MissingMethodException: Default constructor not found.
+in <0x000b5> System.Activator:CreateInstance (System.Type,bool)
+in <0x0000c> System.Activator:CreateInstance (System.Type)
+in <0x0012b> System.ComponentModel.TypeDescriptor:GetConverter (System.Type)
+in <0x00010> System.ComponentModel.TypeDescriptor:GetConverter (object)
+in <0x00120> ObjectFormatter:WriteObject
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x000b2> ArrayListFormatter:Write
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00194> ObjectFormatter:WriteObject
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00057> PairFormatter:Write
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00194> ObjectFormatter:WriteObject
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00046> PairFormatter:Write
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00194> ObjectFormatter:WriteObject
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00046> TripletFormatter:Write
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00194> ObjectFormatter:WriteObject
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x000b2> ArrayListFormatter:Write
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00194> ObjectFormatter:WriteObject
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00068> TripletFormatter:Write
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00194> ObjectFormatter:WriteObject
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x000b2> ArrayListFormatter:Write
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00194> ObjectFormatter:WriteObject
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00068> TripletFormatter:Write
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00194> ObjectFormatter:WriteObject
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00046> PairFormatter:Write
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x00194> ObjectFormatter:WriteObject
+(System.IO.BinaryWriter,object,System.Web.UI.ObjectStateFormatter/WriterContext)
+in <0x0002b> System.Web.UI.ObjectStateFormatter:SerializeValue
+(System.IO.BinaryWriter,object)
+in <0x00048> System.Web.UI.ObjectStateFormatter:Serialize
+(System.IO.Stream,object)
+in <0x00042> System.Web.UI.ObjectStateFormatter:Serialize (object)
+in <0x0001e> System.Web.UI.LosFormatter:Serialize (System.IO.TextWriter,object)
+in <0x00060> System.Web.UI.Page:GetViewStateString ()
+in <0x0007d> System.Web.UI.Page:OnFormRender
+(System.Web.UI.HtmlTextWriter,string)
+in <0x00036> System.Web.UI.HtmlControls.HtmlForm:RenderChildren
+(System.Web.UI.HtmlTextWriter)
+in <0x00023> System.Web.UI.HtmlControls.HtmlContainerControl:Render
+(System.Web.UI.HtmlTextWriter)
+in <0x0000d> System.Web.UI.HtmlControls.HtmlForm:Render
+(System.Web.UI.HtmlTextWriter)
+in <0x00020> System.Web.UI.Control:RenderControl (System.Web.UI.HtmlTextWriter)
+in <0x00096> System.Web.UI.Control:RenderChildren
+(System.Web.UI.HtmlTextWriter)
+in <0x00011> System.Web.UI.Control:Render (System.Web.UI.HtmlTextWriter)
+in <0x00020> System.Web.UI.Control:RenderControl (System.Web.UI.HtmlTextWriter)
+in <0x0036d> System.Web.UI.Page:InternalProcessRequest ()
+in <0x000a9> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
+in <0x00233> ExecuteHandlerState:Execute ()
+in <0x0007a> StateMachine:ExecuteState
+(System.Web.HttpApplication/IStateHandler,bool&)
+
+
+Expected Results:
+
+The DataSet sucessfully store in a ViewState...
+
+How often does this happen? 
+
+Everytime when i try to store a DataSet in a ViewState.
+
+Additional Information:
+
+MySqlDataAdapter adapter = new MySqlDataAdapter(dbcmd);
+DataSet          dtsArquivos = new DataSet ();
+adapter.Fill(dtsArquivos, "dtsArquivos");		
+ViewState["Arquivos"] = dtsArquivos;