title: Serialization exception after moving code into namespace
body: <p>I moved the code of my c++/cli (visual studio 2010) project into a namespace. Before that, everything was in the global namespace, but this has several drawbacks which needed to be addressed. </p>
  
  <p>After the renaming, the binary deserialization of existing save files fail, with the following error message:</p>
  
  <pre><code>Serialization Exception occurred.
  The object with ID 11 was referenced in a fixup but does not exist.
  </code></pre>
  
  <p>To address the renaming of the classes - which now reside in a namespace - I use a SerializationBinder.</p>
  
  <pre><code>ref class MySerializationBinder sealed: SerializationBinder
  {
  public:
      virtual Type^ BindToType (String^ assemblyname, String^ typeName) override
      {
          Type^ result = Type::GetType (typeName);
          if (result == nullptr)
          {
              result = Type::GetType ("MyNamespace." + typeName);
          }
          return result;
      }
  };
  </code></pre>
  
  <p>Does anyone have a clue of what might be going wrong here?</p>