title: cannot create instance of viewmodellocator in c# mvvm light
body: <p>I have a project in which I have two instances of <code>ViewModelLocator</code>, each in different assemblies. When I try to run my app, it gives me an error at the very beginning saying:</p>
  
  <blockquote>
    <p>Cannot create instance of ViewModelLocator in first assembly.</p>
  </blockquote>
  
  <p>I get this error if I reference the second DLL in the first project and then run it. The <code>ViewModelLocator</code> that runs is from the first one, but I'm not sure if it's the right way to do so.</p>
  
  <p>Can anyone guide on whether:</p>
  
  <ul>
  <li>I can have two ViewModelLocators in a LOC; and</li>
  <li>What is the right way of doing this?</li>
  </ul>
  
  <p>Both my guide and co-pilot projects have ViewModelLocators. Here's my code:</p>
  
  <pre><code>    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:ignore="http://www.ignore.com"
      mc:Ignorable="d ignore"
      xmlns:vm="using:Copilot.ViewModel"&gt;
      xmlns:vm="using:Navigator.Guide.ViewModel"&gt;
  
      &lt;Application.Resources&gt;
          &lt;ResourceDictionary&gt;
              &lt;!--Global View Model Locator--&gt;
              &lt;vm:ViewModelLocator x:Key="Locator" 
                                   d:IsDataSource="True" /&gt;
  
  
          &lt;/ResourceDictionary&gt;
      &lt;/Application.Resources&gt;
  &lt;/Application&gt;
  </code></pre>