title: ASP.NET How to add assembly in web.config?
body: <p>I have a assembly made in another project (projA). Now I want to import this dll in another project (projB). How can I achieve this? This is what I've tried (in projB).</p>
  
  <p>1 Put dll in same dir as my project. (the bin dir)</p>
  
  <p>2 In web.config:</p>
  
  <pre><code>&lt;assemblies&gt;
    &lt;add assembly="projA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
  &lt;/assemblies&gt;
  </code></pre>
  
  <p>This is the error I get:</p>
  
  <p>Could not load file or assembly 'projA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</p>
  
  <p>EDIT:</p>
  
  <p>The point is that eventually the assembly reference must me added dynamically</p>
  
  <p>EDIT 2:</p>
  
  <p>The name of the assembly (and namespace) are stored in the database. The physical assembly (dll) is added (by installation) in projB. Now the code in projB must read the assembly name from the database and then add a reference to the dll which is added by installation.</p>