locked
Handle is not initialized error RRS feed

  • Question

  • Hi,
     Iam using UIP session management techniques.We are storing an entire dataset into session to be used in other pages.At Random times this type of error is encountered.
    System.Exception: Original Exception Type: System.InvalidOperationException Message: Handle is not initialized. StackTrace:    at System.WeakReference.get_Target()
       at System.Data.Index.get_RowFilter()
       at System.Data.Index.Equal(Int32[] indexDesc, DataViewRowState recordStates, IFilter rowFilter)
       at System.Data.DataTable.GetIndex(Int32[] indexDesc, DataViewRowState recordStates, IFilter rowFilter)
       at System.Data.DataKey.GetSortIndex(DataViewRowState recordStates)
       at System.Data.DataKey.GetSortIndex()
       at System.Data.DataRow.GetChildRows(DataRelation relation, DataRowVersion version)
       at System.Data.XmlDataTreeWriter.XmlDataRowWriter(DataRow row, String encodedTableName)
       at System.Data.XmlDataTreeWriter.SaveDiffgramData(XmlWriter xw, Hashtable rowsOrder)
       at System.Data.NewDiffgramGen.Save(XmlWriter xmlw, DataTable table)
       at System.Data.DataSet.WriteXml(XmlWriter writer, XmlWriteMode mode)
       at System.Data.DataSet.System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
       at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter)
       at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter)
       at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
       at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph)
       at System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value)
       at System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value)
       at System.Web.UI.LosFormatter.SerializeInternal(TextWriter output, Object value)
       at System.Web.UI.LosFormatter.Serialize(TextWriter output, Object value)
       at Humana.ApplicationBlocks.UIProcess.WebStatePersistence.SerializeWebStates()
       at Humana.ApplicationBlocks.UIProcess.StateManagementPage.StateHandler_PreRender(Object sender, EventArgs e)
       at System.Web.UI.Control.OnPreRender(EventArgs e)
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain()

    Why is this happening and Is there a solution for this?
    Thursday, September 29, 2005 8:55 PM

Answers

  • Hi Manoj,

    Is it possible for you to make a small repro for the issue you are seeing. We will investigate into this.

    Also, as this is a DataSet related question, you will get quicker response if you post this question on ".NET Framework Data Access and Storage" MSDN forum.

    Thanks,
    Ravinder
    Wednesday, December 7, 2005 7:21 PM

All replies

  • Hi Manoj,

    Is it possible for you to make a small repro for the issue you are seeing. We will investigate into this.

    Also, as this is a DataSet related question, you will get quicker response if you post this question on ".NET Framework Data Access and Storage" MSDN forum.

    Thanks,
    Ravinder
    Wednesday, December 7, 2005 7:21 PM
  • did you sort this out ?

    are you running windows vista ?

    craig kelly-soens - Windows Vista WinFx XAML .Net Evangelist
    http://www.XpectWorld.com - customised "super-easy to use" Windows Vista based software & consultancy
    Saturday, January 14, 2006 11:47 AM