title: Type A DLL cannot be cast to type B DLL. Type A originates.. from in the context LoadFrom
body: <p>I am trying to test third pary API in visual studio using TestProject. I am getting error. I have referenced 3rd API in Test Project as well as in Business Logic project. Now I am passing test data from Test project to Business logic project getting bellow error.</p>
  
  <blockquote>
    <p>[A]TIMSS.API.User.UserDefinedInfo.UserDefinedCustomerTechnicalDisciplinees cannot be cast to [B]TIMSS.API.User.UserDefinedInfo.UserDefinedCustomerTechnicalDisciplinees. Type A originates from 'TIMSS.API.User, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'LoadFrom' at location 'C:\Svad\Trunk\Source\EBusiness\EBusiness.Test\bin\bin\TIMSS.API.User.dll'. Type B originates from 'TIMSS.API.User, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Svadlakonda\Srikanth\Trunk\Source\EBusiness\EBusiness.Test\bin\TIMSS.API.User.dll'.</p>
  </blockquote>
  
  <p>What is the the problem here? I tried making Test Project referenced DLL to <code>Copy Local</code> to <code>false</code> and vice versa still did not work.</p>