title: Changing namespace name of C++ component in Windows Phone causes exception
body: <p>I have a C++ runtime component in a WP8 application, and if I change the namespace name, I get a "TargetInvocation" exception thrown whenever I try to instantiate a class in that namespace.</p>
  
  <p>As an example, if I create the default C++ Windows Runtime Component, the header looks like this:</p>
  
  <pre><code>#pragma once
  
  namespace CppComponent1
  {
      public ref class WindowsPhoneRuntimeComponent sealed
      {
      public:
          WindowsPhoneRuntimeComponent();
      };
  }
  </code></pre>
  
  <p>If I change <code>CppComponent1</code> to <code>CppComponent2</code> in the .h and the .cpp, and then try to instantiate a <code>WindowsPhoneRuntimeComponent</code> object in my C# code, I get the following error:</p>
  
  <pre><code>A first chance exception of type 'System.TypeLoadException' occurred in Unknown Module.
  A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.ni.dll
  A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in Microsoft.Phone.ni.dll
  </code></pre>
  
  <p>How can I change the namespace of a native module in a WP8 app?  Thanks!</p>