web config - Problem when trying to configure enterprise library 5.0 (Data Access Application Block) -


Walk Diaaabi the Enterprise Library 5.0, I ran into some problems. I followed the steps according to the tutorial, but getting errors ...

1) download / install the enterprise library

2) References to the block I needed (generally add / data)

3) Import

  Import Microsoft.Practices.EnterpriseLibrary.Common import Microsoft.Practices.EnterpriseLibrary.Data   < P> 4) Enterprise library config software I open web.config from my site. Then I click on the blocks, then add data settings ... my Fill the selection and save / close  

5) I then try to get an example of the database through (thinking is complete)

do not load could file or assembly:

  dim database database = DatabaseFactory.CreateDatabase ()  

6) I 'Microsoft.Practices.EnterpriseLibrary.Data as the compilation and the following error , Version = 5.0.414.0, culture = neutral, publicKeyToken = 31bf3856ad364e35 'or one of your dependencies. The apparent definition of the assembly located does not match the assembly reference. (Exception from HRESULT: 0x80131040) (C: \ Site \ web.config line 4)

My web.config was generated by the off-line 4 config tool is:

  & 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;  

Am I missing a necessary step? Have I taken steps in the wrong order? I have made a mistake?

Thanks a lot for help.

postprop = "text">

Answer:

I accidentally referred to assemblies from the source code folder. This means that the public token = faucet will be. I referenced the assemblies in C: \ Program Files \ Microsoft Enterprise Library 5.0 \ Bin and the issue is now resolved.


Comments