Load balancing issues - Binary stream '0' does not contain a valid BinaryHeader

  •  06-08-2009, 8:27 PM

    Load balancing issues - Binary stream '0' does not contain a valid BinaryHeader

    Hi,
     
    I am having issues with load balancing cutechat v5. This error occurs for a few users on our site and is always happening when trying to use the "export" function in the chatadmin area.
     
    Running Windows2008 (IIS7) and Sql2008 in a load-balanced / clustered environment.
     
    Only started to happen when we switched to NLB mode.
     
    Any ideas / suggestions?

    Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.Serialization.SerializationException: Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization.

    Source Error:

     

    Line 91:              

    Line 92:       int totalCount;

    Line 93:         msgs=ChatApi.GetMessages(location,placename,DataGrid1.PageSize,DataGrid1.CurrentPageIndex,out totalCount);

    Line 94:       DataGrid1.VirtualItemCount=totalCount;

    Line 95:       DataGrid1.DataSource=msgs;


    Source File: \cutesoft_client\cutechat\chatadmin\Log.Aspx    Line: 93

    Stack Trace:

     

    [SerializationException: Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization.]

       System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run() +776

       System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) +168

       System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) +203

       CuteChat.ClusterSupport.ExecuteMethod(MethodInfo method, Object[] args) +307

       CuteChat.ClusterSupport.ExecuteCurrentMethod(Object[] args) +73

       CuteChat.ChatApi.GetMessages(String location, String placename, Int32 pagesize, Int32 pageindex, Int32& totalcount) +198

       ASP.cutesoft_client_cutechat_chatadmin_log_aspx.BindDataGrid() in cutesoft_client\cutechat\chatadmin\Log.Aspx:93

       ASP.cutesoft_client_cutechat_chatadmin_log_aspx.DropDownLobbies_SelectedIndexChanged(Object sender, EventArgs e) in cutesoft_client\cutechat\chatadmin\Log.Aspx:140

       System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +111

       System.Web.UI.WebControls.DropDownList.RaisePostDataChangedEvent() +134

       System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +10

       System.Web.UI.Page.RaiseChangedEvents() +165

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074

View Complete Thread