# SerializationException

**URL:** <https://forums.toadworld.com/t/serializationexception/48168>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [November 14, 2019, 9:44pm UTC](https://forums.toadworld.com/t/serializationexception/48168 "2019-11-14T21:44:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![usamah](https://avatars.discourse-cdn.com/v4/letter/u/c67d28/32.png) [@usamah](https://forums.toadworld.com/u/usamah)\
**Post date:** [November 14, 2019, 9:44pm UTC](https://forums.toadworld.com/t/serializationexception/48168/1 "2019-11-14T21:44:44Z")

</div>

I just upgraded from 5.0 to 5.1 and now whenever I try to open a workbook, Toad crashes. Details below:

“Toad Shutdown

Toad encountered a serious error and must close.

Please save your data and close the application.

We apologize for the inconvenience.

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

 ![image](https://global.discourse-cdn.com/quest/original/2X/1/12479f16c21d3f35eb92573143b0164332744874.png)

Any help would be highly appreciated!

Thank you!

---

<div class="post-metadata">

**Author:** ![Filip.Cevela](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/filip.cevela/32/200_2.png) [@Filip.Cevela](https://forums.toadworld.com/u/Filip.Cevela)\
**Post date:** [November 15, 2019, 7:44am UTC](https://forums.toadworld.com/t/serializationexception/48168/2 "2019-11-15T07:44:48Z")

</div>

This is a really uncommon issue. You can try to remove your application data folder which we are using for storing setting information for Toad.  
C:\Users\*\*\*\*\AppData\Roaming\Quest Software\Toad Data Point 5.1

Try to remove it and start TDP again.  
If you still have an issue please go to this AppData location again and try to send us file 'ExceptionTrace.log'

---

<div class="post-metadata">

**Author:** ![usamah](https://avatars.discourse-cdn.com/v4/letter/u/c67d28/32.png) [@usamah](https://forums.toadworld.com/u/usamah)\
**Post date:** [November 20, 2019, 9:25pm UTC](https://forums.toadworld.com/t/serializationexception/48168/3 "2019-11-20T21:25:11Z")

</div>

Thanks for the tip, Filip. I am a little confused about the implementation. What do you mean when you say "remove" the application data folder? Where should I move it to? Should I delete it? Cut and paste it to another location?

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![usamah](https://avatars.discourse-cdn.com/v4/letter/u/c67d28/32.png) [@usamah](https://forums.toadworld.com/u/usamah)\
**Post date:** [December 13, 2019, 10:32pm UTC](https://forums.toadworld.com/t/serializationexception/48168/4 "2019-12-13T22:32:51Z")

</div>

Hi Filip. I wasn't able to resolve this issue earlier. Just today I updated again to the most recent version of Toad (5.1.2), and I still have this serialization exception error. It is preventing me from opening up a previous workbook project of mine which I need to consult. Do you know what could be causing this or how I can fix it?

Thank you!

---

<div class="post-metadata">

**Author:** ![Filip.Cevela](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/filip.cevela/32/200_2.png) [@Filip.Cevela](https://forums.toadworld.com/u/Filip.Cevela)\
**Post date:** [December 17, 2019, 6:52am UTC](https://forums.toadworld.com/t/serializationexception/48168/5 "2019-12-17T06:52:13Z")

</div>

Hi, were you able to find AppData directory as I mentioned? This folder is only for custom/temporary data. We are storing there your settings, connections or logs. So if you will remove this folder you won't lost any data or some of your toad files.  
You can remove or rename it. Toad will create new folder on start.  
If you have some issue with WB. Can you tell me little bit more? What exactly issue do you have? Does it load WB file? Are you storing data with it?

Filip

---

<div class="post-metadata">

**Author:** ![Julie\_Lyon](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@Julie\_Lyon](https://forums.toadworld.com/u/Julie_Lyon)\
**Post date:** [June 16, 2020, 10:33pm UTC](https://forums.toadworld.com/t/serializationexception/48168/6 "2020-06-16T22:33:01Z")

</div>

Hi, Filip, I am getting the same error. I just upgraded from 4.2 to 5.1 this week. The .tsm file (created in 4.2) loads and appears to be trying to connect and then I see the same message that was posted above. Let me know if I should start a new thread, not sure if I should since it's the same subject?  
New exception: 6/16/2020 3:25:13 PM  
Quest.Toad.Exceptions.DatabaseException: ORA-01005: null password given; logon denied  
Stack trace:  
at Quest.Toad.Oracle.OracleToadConnection.OpenConnection(IDbConnection connection)  
at Quest.Toad.Db.Connection.AllocConnection()  
at Quest.Toad.Db.Connection.Connect(Boolean notify)  
at Quest.Toad.Db.Provider.BackgroundConnector.CreateBackgroundConnection()  
New exception: 6/16/2020 3:25:13 PM  
Quest.Toad.Exceptions.DatabaseException: ORA-01005: null password given; logon denied  
Stack trace:  
at Quest.Toad.Oracle.OracleToadConnection.OpenConnection(IDbConnection connection)  
at Quest.Toad.Db.Connection.AllocConnection()  
at Quest.Toad.Db.Connection.Connect(Boolean notify)  
at Quest.Toad.Db.Provider.BackgroundConnector.CreateBackgroundConnection()  
New exception: 6/16/2020 3:25:43 PM  
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.  
Stack trace:  
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 Quest.FastData.FastSerializeSerialize.Deserialize(BinaryReader inStream)  
at Quest.FastData.FastTable.DeserializeRow(BinaryReader reader)  
at Quest.FastData.FastTable.RowCollection..ctor(BinaryReader reader, FastTable table, Boolean allowSpool)  
at Quest.FastData.FastTable..ctor(Stream stream)  
at Quest.Toad.Editor.ToadEditorFormat.\<\>c\_\_DisplayClass3\_1.b\_\_0()  
at Quest.Toad.Util.Global.\<\>c\_\_DisplayClass333\_0.b\_\_0()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
at System.Threading.ThreadHelper.ThreadStart()  
New exception: 6/16/2020 3:25:43 PM  
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.  
Stack trace:  
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 Quest.FastData.FastSerializeSerialize.Deserialize(BinaryReader inStream)  
at Quest.FastData.FastTable.DeserializeRow(BinaryReader reader)  
at Quest.FastData.FastTable.RowCollection..ctor(BinaryReader reader, FastTable table, Boolean allowSpool)  
at Quest.FastData.FastTable..ctor(Stream stream)  
at Quest.Toad.Editor.ToadEditorFormat.\<\>c\_\_DisplayClass3\_1.b\_\_0()  
at Quest.Toad.Util.Global.\<\>c\_\_DisplayClass333\_0.b\_\_0()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
at System.Threading.ThreadHelper.ThreadStart()  
New exception: 6/16/2020 3:25:43 PM  
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.  
Stack trace:  
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 Quest.FastData.FastSerializeSerialize.Deserialize(BinaryReader inStream)  
at Quest.FastData.FastTable.DeserializeRow(BinaryReader reader)  
at Quest.FastData.FastTable.RowCollection..ctor(BinaryReader reader, FastTable table, Boolean allowSpool)  
at Quest.FastData.FastTable..ctor(Stream stream)  
at Quest.Toad.Editor.ToadEditorFormat.\<\>c\_\_DisplayClass3\_1.b\_\_0()  
at Quest.Toad.Util.Global.\<\>c\_\_DisplayClass333\_0.b\_\_0()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
at System.Threading.ThreadHelper.ThreadStart()  
Outer exception:  
System.ApplicationException: Unhandled exception caused. Process is forced to be aborted.  
Stack trace:  
New exception: 6/16/2020 3:25:43 PM  
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.  
Stack trace:  
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 Quest.FastData.FastSerializeSerialize.Deserialize(BinaryReader inStream)  
at Quest.FastData.FastTable.DeserializeRow(BinaryReader reader)  
at Quest.FastData.FastTable.RowCollection..ctor(BinaryReader reader, FastTable table, Boolean allowSpool)  
at Quest.FastData.FastTable..ctor(Stream stream)  
at Quest.Toad.Editor.ToadEditorFormat.\<\>c\_\_DisplayClass3\_1.b\_\_0()  
at Quest.Toad.Util.Global.\<\>c\_\_DisplayClass333\_0.b\_\_0()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
at System.Threading.ThreadHelper.ThreadStart()  
Outer exception:  
System.ApplicationException: Unhandled exception caused. Process is forced to be aborted.  
Stack trace:  
New exception: 6/16/2020 3:25:43 PM  
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.  
Stack trace:  
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 Quest.FastData.FastSerializeSerialize.Deserialize(BinaryReader inStream)  
at Quest.FastData.FastTable.DeserializeRow(BinaryReader reader)  
at Quest.FastData.FastTable.RowCollection..ctor(BinaryReader reader, FastTable table, Boolean allowSpool)  
at Quest.FastData.FastTable..ctor(Stream stream)  
at Quest.Toad.Editor.ToadEditorFormat.\<\>c\_\_DisplayClass3\_1.b\_\_0()  
at Quest.Toad.Util.Global.\<\>c\_\_DisplayClass333\_0.b\_\_0()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
at System.Threading.ThreadHelper.ThreadStart()

---

<div class="post-metadata">

**Author:** ![rfoster11](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@rfoster11](https://forums.toadworld.com/u/rfoster11)\
**Post date:** [April 23, 2021, 10:04pm UTC](https://forums.toadworld.com/t/serializationexception/48168/7 "2021-04-23T22:04:49Z")

</div>

I know this is late, but I had a user contact me about this same issue and I found that they have three previous versions of TOAD installed as well. Once I uninstalled all but the most recent version of TOAD, the issue stopped happening.

You may want to check under apps to see which version of TOAD you have installed since it seems updating doesn't automatically remove them.
