﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » Enterprise Server - V1 » Issues  » ES SerializationException</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 13:25:01 GMT</lastBuildDate><ttl>20</ttl><item><title>ES SerializationException</title><link>http://forum.strataframe.net/FindPost9095.aspx</link><description>I'm now getting this error when I attempt to use ES with the application. This occurs at the first connection to the database, getting the security preferences.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
[quote]SerializationException&lt;br&gt;
The input stream is not a valid binary format. The starting contents (in bytes) are: 01-00-01-00-00-00-FF-FF-FF-FF-01-00-00-00-00-00-00 ...&lt;br&gt;
&lt;br&gt;
Source     : mscorlib&lt;br&gt;
&lt;br&gt;
Stack Trace:&lt;br&gt;
   at System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Read(__BinaryParser input)&lt;br&gt;
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializationHeaderRecord()&lt;br&gt;
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()&lt;br&gt;
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)&lt;br&gt;
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)&lt;br&gt;
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.ExecuteScalarResults.ReadDataFromStream(BinaryReader Reader)&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.ExecuteScalarResults.CreateFromStream(BinaryReader Reader)&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.?(BaseParams A_0, RemoteDataSourceCommand A_1)&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.?(DbCommand A_0, Boolean A_1, String A_2)&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.ExecuteScalar(DbCommand Command)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.ExecuteScalar(DbCommand CommandToExecute)&lt;br&gt;
   at FOXSystems.RAMS.BusinessObjects.Security.SecUserProjectDefaultBO.GetUsersDefaultProject(Int32 userID) in E:\FoxSystems\RAMS\RAMS.NET\BusinessObjects\Security\SecUserProjectDefaultBO.vb:line 92&lt;br&gt;
   at FOXSystems.RAMS.Base.UserContext.SetUserContext(ISecurityUser secUser) in E:\FoxSystems\RAMS\RAMS.NET\RamsBase\UserContext.vb:line 267&lt;br&gt;
   at FOXSystems.RAMS.RAMSLoginForm.btnOk_Click(Object sender, EventArgs e) in E:\FoxSystems\RAMS\RAMS.NET\RAMS.NET\RAMSLoginForm.vb:line 314&lt;br&gt;
   at System.Windows.Forms.Control.OnClick(EventArgs e)&lt;br&gt;
   at System.Windows.Forms.Button.OnClick(EventArgs e)&lt;br&gt;
   at System.Windows.Forms.Button.PerformClick()&lt;br&gt;
   at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)&lt;br&gt;
   at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)&lt;br&gt;
   at System.Windows.Forms.Control.PreProcessMessage(Message&amp; msg)&lt;br&gt;
   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message&amp; msg)&lt;br&gt;
   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG&amp; msg)&lt;br&gt;
[/quote]</description><pubDate>Wed, 06 Jun 2007 08:43:20 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: ES SerializationException</title><link>http://forum.strataframe.net/FindPost9347.aspx</link><description>No problem, Greg.&amp;nbsp; Sorry again for not thinking about this the first time through :crazy:</description><pubDate>Wed, 06 Jun 2007 08:43:20 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: ES SerializationException</title><link>http://forum.strataframe.net/FindPost9318.aspx</link><description>This is solved.  Ben helped me in outside of this forum.  The solution was to copy the enterprise and enterprise client dlls to the GAC on the client side.  The enterprise and enterprise client dlls must match on the server and the client. &lt;br&gt;
&lt;br&gt;
Thanks and once again great service guys!</description><pubDate>Tue, 05 Jun 2007 11:16:59 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: ES SerializationException</title><link>http://forum.strataframe.net/FindPost9296.aspx</link><description>Did this one get lost?  I'd really like to figure this out soon :D</description><pubDate>Mon, 04 Jun 2007 17:23:40 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: ES SerializationException</title><link>http://forum.strataframe.net/FindPost9168.aspx</link><description>This actually occurs when the security preferences are being requested:&lt;br&gt;
&lt;br&gt;
SFSPreferencesBO.RetrieveSecurityPreferences()&lt;br&gt;
&lt;br&gt;
in InitApplication method.&lt;br&gt;
&lt;br&gt;
This is the first call to the database.</description><pubDate>Tue, 29 May 2007 13:38:35 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: ES SerializationException</title><link>http://forum.strataframe.net/FindPost9163.aspx</link><description>Yes, apparently, it did... what is the value you are trying to return from your ExecuteScalar call?&amp;nbsp; It appears as though it is not being serialized correctly.&amp;nbsp; The ES serializes values that are returned from ExecuteScalar because the return value is not of a known type.&amp;nbsp; The encryption keys are being set correctly because I'm pretty sure you would have received a Bad Data exception before it even tried to deserialize the value from the stream.</description><pubDate>Tue, 29 May 2007 13:25:42 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: ES SerializationException</title><link>http://forum.strataframe.net/FindPost9159.aspx</link><description>Did this post get over looked?</description><pubDate>Tue, 29 May 2007 13:11:45 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>