title: Problem when trying to configure enterprise library 5.0 (Data Access Application Block)
body: <p>I am running into some problems while trying to get DAAB from Enterprise library 5.0 running. I have followed the steps as per the tutorial, but am getting errors...</p>
  
  <p>1) Download / install enterprise library</p>
  
  <p>2) Add references to the blocks I need (common / data)</p>
  
  <p>3) Imports</p>
  
  <pre><code>Imports Microsoft.Practices.EnterpriseLibrary.Common
  Imports Microsoft.Practices.EnterpriseLibrary.Data
  </code></pre>
  
  <p>4) Through the enterprise library config software. I open up the web.config from my site. I then click Blocks, then Add data settings... fill in my details and save / close</p>
  
  <p>5) I then (thinking setup is complete) try to get an instance of the database via</p>
  
  <pre><code> Dim db As Database = DatabaseFactory.CreateDatabase() 
  </code></pre>
  
  <p>6) I compile and receive the following error:</p>
  
  <p>Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.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) (C:\site\web.config line 4)</p>
  
  <p>Line 4 off my web.config was generated by the config tool and is:   </p>
  
  <pre><code>&lt;section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" /&gt;
  </code></pre>
  
  <p>Am I missing a required step? Have I done the steps in the wrong order? Have I made a mistake?</p>
  
  <p>Thanks a lot for the assistance.</p>