title: Microsoft.Dynamics.BusinessConnectorNet mixed mode assembly error
body: <p>"FileLoadException was unhandled by user code"
  (Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information)</p>
  
  <p>as the matter above.i got exception when try to execute</p>
  
  <pre><code>        Axapta axapta;
          AxaptaRecord axaptaRecord;
  
          List&lt;Vendor&gt; vendors = new List&lt;Vendor&gt;();
  
          public void Submit(Vendor vendor)
          {
  
              axapta = new Axapta();
              axapta.Logon(null,null, null, null);
              using (axaptaRecord = axapta.CreateAxaptaRecord("IDS_Pelajar"))
              {
                  axaptaRecord.Clear();
                  axaptaRecord.InitValue();
                  axaptaRecord.set_Field("TenteraPolisNo", vendor.VendorAccount);
                  axaptaRecord.set_Field("Poskod", vendor.InvoiceAccount);
                  axaptaRecord.set_Field("Keturunan", vendor.Name); 
                  axaptaRecord.Insert();
              }
              axapta.Logoff();
              vendors.Add(vendor);
  </code></pre>
  
  <p>i already try to add this line of code in app.config</p>
  
  <pre><code>&lt;startup useLegacyV2RuntimeActivationPolicy="true"&gt;
      &lt;supportedRuntime version="v4.0"/&gt;
    &lt;/startup&gt;
  </code></pre>
  
  <p>but still it doesn't work.</p>
  
  <p>i have no problem to execute that block of code in console..the exception only pop up when i'm try to execute that block of code in WCF services library </p>
  
  <p>sorry for trouble but i really loss now..Tq 4 help</p>