I\'m getting an:
System.Runtime.Serialization.SerializationException: Unable to find assembly \'myNameSpace, Version=1.0.0.0, Culture=neutral, Pub
I followed the solution answered by JTtheGeek and in order to get it work for me I had to add the following just before the statement assemblyName = currentAssembly;:
assemblyName = currentAssembly;
typeName = "yourNamespace.yourClassName";
After that it worked great!