title: vb.net calling a c# method is giving errors
body: <p>I am trying to access c# method from a vb.net project.</p>
  <p>The c# project has the following code:</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using MeF.Client;
  
  public class LoginClass
  {
      // lines of code that are giving errors  (when commented there’s no error)
      private ServiceContext context = new ServiceContext();
      public string etin;
      public string appSysId;
  
      static void Main(string[] args)   
      { 
          LoginClass.CreateServiceContext();
      }
  
      //bla, bla, bla
  }
  </code></pre>
  <hr />
  <p>The vb.net project has this:</p>
  <pre class="lang-vb prettyprint-override"><code>Imports AimEFileCore
  
  Public Class Form1
      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
      End Sub
  
      Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  
          Dim Process As New AimEFileCore.LoginClass
          Process.CreateServiceContext()
      End Sub
  </code></pre>
  <p>When running the code I get the following error</p>
  <blockquote>
  <p>System.IO.FileNotFoundException: 'Could not load file or assembly 'MeFWCFClient, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified</p>
  </blockquote>
  <p>A Mef dll is referenced!</p>
  <p>As soon as I comment the three lines above, it works like a charm.</p>