StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



ES SerializationExceptionExpand / Collapse
Author
Message
Posted 05/25/2007 2:40:39 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 10:01:58 PM
Posts: 1,268, Visits: 3,234
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.


SerializationException
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 ...

Source : mscorlib

Stack Trace:
at System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Read(__BinaryParser input)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializationHeaderRecord()
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at MicroFour.StrataFrame.Data.Enterprise.ExecuteScalarResults.ReadDataFromStream(BinaryReader Reader)
at MicroFour.StrataFrame.Data.Enterprise.ExecuteScalarResults.CreateFromStream(BinaryReader Reader)
at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.?(BaseParams A_0, RemoteDataSourceCommand A_1)
at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.?(DbCommand A_0, Boolean A_1, String A_2)
at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.ExecuteScalar(DbCommand Command)
at MicroFour.StrataFrame.Business.BusinessLayer.ExecuteScalar(DbCommand CommandToExecute)
at FOXSystems.RAMS.BusinessObjects.Security.SecUserProjectDefaultBO.GetUsersDefaultProject(Int32 userID) in E:\FoxSystems\RAMS\RAMS.NET\BusinessObjects\Security\SecUserProjectDefaultBO.vb:line 92
at FOXSystems.RAMS.Base.UserContext.SetUserContext(ISecurityUser secUser) in E:\FoxSystems\RAMS\RAMS.NET\RamsBase\UserContext.vb:line 267
at FOXSystems.RAMS.RAMSLoginForm.btnOk_Click(Object sender, EventArgs e) in E:\FoxSystems\RAMS\RAMS.NET\RAMS.NET\RAMSLoginForm.vb:line 314
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.PerformClick()
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
Post #9095
Posted 05/29/2007 1:11:45 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 10:01:58 PM
Posts: 1,268, Visits: 3,234
Did this post get over looked?
Post #9159
Posted 05/29/2007 1:25:42 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 09/26/2008 8:30:36 AM
Posts: 2,685, Visits: 1,886
Yes, apparently, it did... what is the value you are trying to return from your ExecuteScalar call?  It appears as though it is not being serialized correctly.  The ES serializes values that are returned from ExecuteScalar because the return value is not of a known type.  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.


www.bungie.net
Post #9163
Posted 05/29/2007 1:38:35 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 10:01:58 PM
Posts: 1,268, Visits: 3,234
This actually occurs when the security preferences are being requested:

SFSPreferencesBO.RetrieveSecurityPreferences()

in InitApplication method.

This is the first call to the database.
Post #9168
Posted 06/04/2007 5:23:40 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 10:01:58 PM
Posts: 1,268, Visits: 3,234
Did this one get lost? I'd really like to figure this out soon
Post #9296
Posted 06/05/2007 11:16:59 AM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 10:01:58 PM
Posts: 1,268, Visits: 3,234
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.

Thanks and once again great service guys!
Post #9318
Posted 06/06/2007 8:43:20 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 09/26/2008 8:30:36 AM
Posts: 2,685, Visits: 1,886
No problem, Greg.  Sorry again for not thinking about this the first time through


www.bungie.net
Post #9347
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 9:24am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.078. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.