title: Getting TypeInitializationException in VS2012, But Not 2010
body: <p>I am getting a <code>TypeInitializationException</code> when I try to debug my application in Visual Studio 2012, but I am able to run the application in Visual Studio 2010 without error.</p>
  
  <p>I recently moved a bunch of stuff around (including my project and several references) in order to get it into a version control system.  I had to relink several items so that everything would link correctly when checked out on a different system.</p>
  
  <p>Our development environment is mixed (VS2010 &amp; VS2012).  Running out of VS2010 produced no errors.  But when I ran the Debug in VS2012 I received the <code>TypeInitializationException</code> exception.</p>
  
  <p>The project in the <em>original</em> directory (where it resided before moving for version control purposes) still runs fine in both VS2010 and VS2012.</p>
  
  <p>There is a flag or a parameter or something that got a little messed up somewhere, but I'm not sure where.  Does anyone have any ideas on what I can do to get this to work in VS2012 as well?</p>
  
  <p>(please let me know what, if any, code or config information to include here)</p>
  
  <p><strong>InnerException:</strong></p>
  
  <blockquote>
    <p>The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception.</p>
  </blockquote>
  
  <p><strong>(Second) InnerException:</strong></p>
  
  <blockquote>
    <p>The type initializer for 'MS.Internal.TraceDependencyProperty' threw an exception.</p>
  </blockquote>