title: Trying to solve Compile time error with Assembly.Load using Interface
body: <p>I am loading an assembly at runtime on my code and all the references to that assembly are broken at the run time as I have mentioned on this thread:</p>
  
  <p><a href="https://stackoverflow.com/questions/18369422/how-to-keep-dynamically-loaded-assemblies-form-breaking-code-at-compile-time">How to keep dynamically loaded assemblies form breaking code at compile time?</a></p>
  
  <p>BUT now I tried to solve this issue using the technique that the gentleman here in this thread suggested:</p>
  
  <blockquote>
    <p><a href="http://www.codeproject.com/Articles/187788/Dynamically-Loading-NET-Assemblies-using-Interface" rel="nofollow noreferrer">http://www.codeproject.com/Articles/187788/Dynamically-Loading-NET-Assemblies-using-Interface</a></p>
  </blockquote>
  
  <p>the only problem here that the the class that I am activating from the dynamic assembly uses the native types to that assembly which I can not define in my Interface. and that's where I am stuck. </p>
  
  <p>I also tried replacing those foreign assembly's native type with object/dynamic but my casting is failing at that point.</p>
  
  <p>Any suggestion on how to solve this issue?</p>