title: TypeLoadException on LoadApplication(new App())
body: <p>I have a cross platform Xamarin Forms project which <strong>works fine</strong> when ran on Android or Windows Mobile.</p>
  
  <p>Now I need to run it on iOS but I get an exception when the application is launched on an iPhone emulator:</p>
  
  <p>"System.TypeLoadException: Could not load type 'XamarinMO.Services.DataServices' from assembly 'XamarinMO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'."</p>
  
  <p>The exception occurs early in the code , in the iOS AppDelegate on <strong>LoadApplication(new App());:</strong></p>
  
  <pre><code>public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
  {
  
      public override bool FinishedLaunching(UIApplication app, NSDictionary options)
      {
          global::Xamarin.Forms.Forms.Init();
  
          LoadApplication(new App()); -- &lt;&lt;*** EXCEPTION THROWN HERE ***
  
          ServicePointManager
          .ServerCertificateValidationCallback +=
          (sender, cert, chain, sslPolicyErrors) =&gt; true;
  
          return base.FinishedLaunching(app, options);
      }
  </code></pre>
  
  <p>I am unable to use the debugger to step into the code and the stack trace is as helpful as a chocolate kettle.</p>
  
  <p>The exception does not seem to be related to the code inside my DataServices class as the execution does not even progress that far. My DataServices class seem not to even be instantiated - when I put a break point on the first line in DataServices constructor, the execution does not even get there. This indicates to me the issue is not related to the code inside the class per se (which works fine across a wide range of Android and Windows Mobile devices)</p>