- Home /
Question by
BluePyramid · Jul 22, 2019 at 09:39 AM ·
c#serializationfilesavingfilestream
File saving error
here it is:
SerializationException: End of Stream encountered before parsing was completed.
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run () (at <7d97106330684add86d080ecf65bfe69>:0)
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser serParser, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) (at <7d97106330684add86d080ecf65bfe69>:0)
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) (at <7d97106330684add86d080ecf65bfe69>:0)
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) (at <7d97106330684add86d080ecf65bfe69>:0)
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck) (at <7d97106330684add86d080ecf65bfe69>:0)
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) (at <7d97106330684add86d080ecf65bfe69>:0)
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) (at <7d97106330684add86d080ecf65bfe69>:0)
SaveSystem.LoadPlayer () (at Assets/Scripts/SaveSystem.cs:28)
CircleStuff.Die () (at Assets/Scripts/CircleStuff.cs:54)
CircleStuff.OnBecameInvisible () (at Assets/Scripts/CircleStuff.cs:35)
Any help would be appreciated.
Comment
For some reason, it keeps moving my posts to moderation and you can't reply so please comment your answers
Your answer
Follow this Question
Related Questions
I am getting a serialization exception error when trying to save and load in Unity? 2 Answers
Unity does not finish write file (filecontent suddenly ends) 1 Answer
Visual Studio tells me I cant use File.WriteAllBytes or System.IO.File.WriteAllBytes? 1 Answer
C# Serialization is working fine in Unity but not on Android 2 Answers
Saving and Loading Various Things 1 Answer